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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to