Re: rename and copy recursive for directories?

From: Date: Sun, 03 Mar 2019 21:21:14 +0000
Subject: Re: rename and copy recursive for directories?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-326718@lists.php.net to get a copy of this message
Hi Den søn. 3. mar. 2019 kl. 22.53 skrev Jeffry Killen <jekillen@prodigy.net>: > > 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? No, none of the file system functions does any recursive behavior like that in PHP and it is something you would have to implement on your own. The SPL extension does however implement a RecursiveDirectoryIterator which you may find useful for this. -- regards, Kalle Sommer Nielsen kalle@php.net

« previous php.general (#326718) next »