I have two folders
myappdemo.com/VueGuides/services/iclean
myappdemo.com/VueGuides/services/pics
I need to move iclea
I required a different solution in my case as I was moving a sub folders contents into the parent folder. rename
wouldn't work in my instance because the path was the same.
(For Linux based machines):
exec('mv '.$this->useFolder.'/'.$sub_folder.'/*'.' '.$this->useFolder);
This uses the inbuilt mv
function through exec.