Re: rename and copy recursive for directories?
| From: | Sam Hobbs | Date: | Sun, 03 Mar 2019 22:10:17 +0000 |
| Subject: | Re: rename and copy recursive for directories? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326721@lists.php.net to get a copy of this message | ||
PHP: copy - Manual <http://php.net/manual/en/function.copy.php> 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:
http://php.net/manual/en/function.copy.php#91010
for a recurse_copy sample. That function appears to also be in:
https://gist.github.com/gserrano/4c9648ec9eb293b9377b
Jeffry Killen <mailto:jekillen@prodigy.net> 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