Le 6 févr. 07 à 18:27 Soir, Norman Palardy a écrit:

On Feb 06, 2007, at 7:21 AM, Arnaud Nicolet wrote:

Hello,

I've made an application that copies files to an mp3 disk.
Since the disk is formatted as FAT32 and I can't reformat it as HFS (it does not understand that format), I have to avoid copying resource fork (if any) and metadata, so I'm using the shell command "cp file1 file2".

Under Mac OS 10.3, there is no problem: only the data fork is being copied.

The problem is with Mac OS 10.4. Using that OS, the metadata part is also copied although I'm using the exact same application with the same shell command.

By looking at the man pages of the cp command, I can't find a parameter to avoid the copy of the metadata part.

Using the Finder or CopyFileTo method also copy the metadata and resource fork (as they also did in 10.3).

Is it simply impossible to just copy a data fork using Mac OS 10.4?

Who know, maybe the last post in this list :-(

I believe in 10.4 Apple "fixed" this so that meta data would get copied.
You used to have to use ditto to get everything

Ditto has options to NOT copy resources and otherwise is a lot like cp

You might try that

Ok, thank you.

I wonder why they didn't simply modified cp to allows more options and removed ditto._______________________________________________
Unsubscribe:
<[EMAIL PROTECTED]>

REAL Software has decided to consolidate this mailing list with the online Forums.  
On Monday, February 12, 2007, this mailing list will no longer be active.  We 
encourage you to continue your REALbasic and REAL SQL Server discussions on the 
Forums.  If you are not presently a member of the forum, please sign up today at 
<http://forums.realsoftware.com>.

Reply via email to