Re: Recursive Directory Copy (with resource forks) in Mac OS X
- From: jerrykrinock@xxxxxxxxx
- Date: Thu, 3 Apr 2008 20:47:27 -0700 (PDT)
After looking into the source for File::Copy::Recursive I see that
this is due to its reliance on the copy() method in the superclass
File::Copy. And all of this is due to the fact that perl does not
have a built-in "copy file" function, which is well-known and seems to
have been discussed by people smarter than me who are discussing
whether or not to fix it in perl 6 [1]. So, I'll just use my own
workaround of calling system() to invoke darwin's cp (which copies
resource forks in Mac OS 10.4 or later).
[1] http://groups.google.com/group/perl.perl6.internals/browse_thread/thread/1c11f0a67bde34c2/572e317b67a0c8e6?#572e317b67a0c8e6
.
- References:
- Recursive Directory Copy (with resource forks) in Mac OS X
- From: Jerry Krinock
- Recursive Directory Copy (with resource forks) in Mac OS X
- Prev by Date: Re: New errors of export image format
- Next by Date: Re: Creating a 'load simulator' by calling Perl Programs - or Forking?
- Previous by thread: Recursive Directory Copy (with resource forks) in Mac OS X
- Next by thread: FAQ 8.13 How do I trap control characters/signals?
- Index(es):
Relevant Pages
|