Re: copyPath and performFileOperation
Re: copyPath and performFileOperation
- Subject: Re: copyPath and performFileOperation
- From: Lorenzo Puleo <email@hidden>
- Date: Tue, 28 Jan 2003 00:01:08 +0100
Hi Michael,
thank you. May you write/paste some code explaining how to use ditto via
NSTask? I have never heard this. As ar as its limitation about copying
Finder information, I use to apply Finder info via FSSetCatalogInfo, so it's
not a problem.
Do you know some other limitation/bug/inconvenient (e.g. it doesn't work on
HFS standard, or on no-Mac File Systems, it's slow...) which could refrein
me of implementing this method?
For example, I know that copyPath API uses to fill the RAM with the *whole*
source file, so if you want to copy a 3GBytes file, you need minimum 3GB
free GBytes on your boot disk (which will be used as virtual memory). So, in
cases like this it's very very slow. Also, if you copy a filePackage, later
you still need to copy all the dates, finderInfo, permissions,... to each
file inside the destination filePackage.
Thank you
--
Lorenzo Puleo
mailto:email@hidden
>
From: Michael Tsai <email@hidden>
>
Date: Mon, 27 Jan 2003 14:05:53 -0500
>
To: Lorenzo Puleo <email@hidden>
>
Cc: <email@hidden>
>
Subject: Re: copyPath and performFileOperation
>
>
In my experience, copyPath (which I assume is what performFileOperation
>
calls down to) is less capable on 10.2 than on 10.1, and in neither
>
case does it preserve Mac metadata. On 10.2, I use ditto (via NSTask)
>
to copy files and folders. It's the best method I've found (and can
>
handle the filenames you mention), but it's still not as capable as the
>
Finder in that it doesn't preserve all of the Finder views information.
>
>
I think performFileOperation (at least) should "do what the Finder
>
does," so I'd encourage you to file a bug.
>
>
--Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.