Jump to content

mkdir in existing directory


metaphist

Recommended Posts

I'm trying to make a new directory in an existing one. I'm doing something like:

 

mkdir(existingfolder/existingfolder/newfolder, 0755, true);

 

However, this makes a whole new nested directory instead of putting "newfolder" within the existing folders. Do I have to navigate to the existing directories first or something?

Link to comment
https://forums.phpfreaks.com/topic/113983-mkdir-in-existing-directory/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.