NSFileManager copyItem and 64 Bit not able to copy a symlink?
NSFileManager copyItem and 64 Bit not able to copy a symlink?
- Subject: NSFileManager copyItem and 64 Bit not able to copy a symlink?
- From: Thomas Bauer <email@hidden>
- Date: Sun, 30 Aug 2009 21:40:07 +1200
Dear List!
I recently switched to using NSFileManagers copyItemAtPath method
instead of the deprecated copyPath.
When I compile (and run) the application in question in 64 Bit, the
new method is obviously not able to copy a symbolic link but instead
returns an NSError:
Error Domain=NSPOSIXErrorDomain Code=12 UserInfo=0x115ce8a40
"Operation could not be completed. Cannot allocate memory"
If I use the old method or compile the app as a 32 bit universal
binary the links are copied.
This is happening under 10.5.8.
I find it hard to believe that such a fundamental thing has not been
tested.
Maybe I overlook something but the documentation of the method still
states that symlinks are not traversed and themselves copied...
Any suggestion would be much appreciated...
Regards
Thomas Bauer
_______________________________________________
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