NSFileManager copy -> AFP croaks on extended attributes
NSFileManager copy -> AFP croaks on extended attributes
- Subject: NSFileManager copy -> AFP croaks on extended attributes
- From: Gerd Knops <email@hidden>
- Date: Sun, 21 Dec 2008 18:56:23 -0600
I am having trouble with NSFileManagers 'copyItemAtPath:toPath:error:'
method:
Assuming
- the source path contains some files that use extended attributes
- the destination is on an AFP mounted volume
Under those circumstances copyItemAtPath:toPath:error:' fails and
returns this error:
Error Domain=NSPOSIXErrorDomain Code=1
UserInfo=0x12f49d90 "Operation could not be completed. Operation not
permitted"
Annoyingly neither the 'fileManager:shouldCopyItemAtPath:toPath:' nor
any of the 'fileManager:shouldProceedAfterError:*' delegate methods
are called. The only useful bit of information was hidden in the syslog:
error processing extended attributes: Operation not permitted
The code works fine when the destination is on a local file system or
even on an NFS mounted file system.
Anybody knows of a workaround?
Thanks
Gerd
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden