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

[MacPerl] How to copy whole folders?



Good afternoon everyone!  ;-)

Hope that's not a FAQ - if so, please point me there.

Using MacPerl 5.2.0r4 on MacOS D-8.1 I tried to copy folders using

use File::Copy;
...
copy ($InDirName, $OutDirName) or warn ($!);

and got some odd looking error about "Operation not allowed for sockets" or something like that, no matter if the folder was empty or not.  Using "rename" instead of "copy" in the fragment above works without any flaw.  Is there a simple (and portable) way to duplicate whole folders to some other place?  Have I to run the subtree and to copy each single file myself?

-Moss-



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org