Jump to content

Copying the files inside a folder, without copying the folder


tibberous

Recommended Posts

I want to copy everything in templates/blue to the folder code/

 

However:

 

shell_exec("cp -r 'templates/blue' 'code'");

 

Creates a folder called blue inside code. I tried cp -r 'templates/blue/*' 'code', but that didn't do anything.

 

Any ideas?

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.