Hi,
I was wondering if there was a php function, like mkdir() and rename(), to move a directory to a different location along with the files listed under it.
The only thing I’m aware of is:
[code=php]move_uploaded_file ( string $filename , string $destination )
But I wasn’t sure if that could move a whole directory? The directories I need to move, would though, contain images that were uploaded through php. So maybe it could? But would it be able to move an empty directory? lol
I’ve also found out by mistake, that if I use the rename() and accidentally do the second part of the string to the wrong location, it’ll move the directory and delete it from its real location and rename it in the other location lol, but I’m not sure if that’s a consistent way to go about it, and if it would lose the files along the way.
Thanks for any help,
Jesi