Copying[moving] a directory from one volume to another would require traversing a whole directory tree and copying each file and creating copies of each directory [and also deleting these after they are copied]. It is a huge operation in comparison to the rest of the things that File::Copy does.
So I'm not at all surprised that this feature isn't included. Perhaps you don't remember that 'mv' in Unix didn't even handle this case either for many years (we used tar or cpio to do it).
Checking the dependencies for File::Copy I don't see File::Find or some equivalent listed so I'm pretty sure this (significantly more complex case) is not implemented by it.
So I'd actually expect this to be implemented in a separate module that likely uses File::Copy and perhaps File::Path. I don't know if such a module has been written but it seems likely somebody would have done that by now.
- tye
In reply to Re: File::Copy and moving directories across volumes (complex)
by tye
in thread File::Copy and moving directories across volumes
by creamygoodness
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |