Re: rename and copy recursive for directories?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for your response Kalle;

I have written a recursive class member method for such things as setting permissions,
delete, save as (copy under a different name), and search. So I can implement it for renaming*
directories

* relocating a directory to different parent directory

JK
> On Mar 3, 2019, at 1:21 PM, Kalle Sommer Nielsen <kalle@xxxxxxx> wrote:
> 
> Hi
> 
> Den søn. 3. mar. 2019 kl. 22.53 skrev Jeffry Killen <jekillen@xxxxxxxxxxx>:
>> 
>> 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@xxxxxxx





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux