Web lists-archives.com

Re: rename and copy recursive for directories?




PHP: copy - Manual is not clear about copying directories but if you do try using a directory then PH will say:

The first argument to copy() function cannot be a directory
or
The second argument to copy() function cannot be a directory

However see:


for a recurse_copy sample. That function appears to also be in:


Sunday, March 3, 2019 12:53 PM
Hello;
I have looked at manual entries for rename and copy but
I don't see that they will work recursively for renaming or
copying directories with contents.

Do these work recursively for directories when a directory
is copied or renamed to a new directory?

Thank you
JK