Are you trying to create the directory in the factory folder? Is it protected?