Skip navigation.
 
mlRe: NSFileManager
FROM : Chris Parker
DATE : Sun Feb 17 22:02:02 2008

On 16 Feb 2008, at 1:01 AM, Peter Maurer wrote:

>> Can anyone tell me if the NSFileManager methods
>> movePath:toPath:handler
>> and
>> copyPath:toPath:handler:
>>
>> Are safe to use, ie: do they copy all the information that Apple's 
>> file systems have (ie: including things like resource forks, etc).

>
> Last time I checked, comments weren't preserved -- you'll have to 
> transfer those by hand. Resource forks are fine, as far as I remember.


Almost everything should be preserved these days, including comments 
if you're copying files on Leopard with either 
copyPath:toPath:handler: or the newer copyItemAtPath:toPath:error:.

.chris

--
Chris Parker
Cocoa Frameworks
Apple Inc.

Related mailsAuthorDate
mlNSFileManager SD Feb 16, 09:47
mlRe: NSFileManager Peter Maurer Feb 16, 10:01
mlRe: NSFileManager Chris Parker Feb 17, 22:02