Le 18 août 06 à 17:49 Soir, Jonathan Johnson a écrit:
On Aug 18, 2006, at 10:29 AM, [EMAIL PROTECTED] wrote:
On Aug 18, 2006, at 14:45 UTC, Peter De Berdt wrote:
dim sh as new Shell
sh.execute "cp -R "+sourceDirectory.shellpath+"
"+destinationDirectory.shellpath
Untested, but should work, maybe I left out a few parameters of the
shell, check the language reference.
Note: cp is not a safe way to copy Mac files! It will strip resource
forks and metadata. Use ditto instead (see man ditto for details).
Actually, as of 10.4, nearly every command line tool now preserves
resource forks and HFS data. This includes, tar, cp, zip, etc.
I'm glad to see someone whos knows about that.
I'd like to ask something: is it possible, now with 10.4, to avoid
copying HFS data?
My problem: I've made an app to copy ".mp3" files to an Mp3 drive.
Since this drive is NTFS formatted, I had to copy only the data
(using CopyFileTo also copies resfork and metadata), so I used the cp
command. As you can imagine, it doesn't work anymore with MaxOS 10.4
(where the Finder replaces my app).
I'd be surprised if we can't copy only the data fork of a file in
RB._______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>