Re: Removing a file via NSFileWrapper
Re: Removing a file via NSFileWrapper
- Subject: Re: Removing a file via NSFileWrapper
- From: Colas B <email@hidden>
- Date: Mon, 31 Mar 2014 01:02:20 +0100 (BST)
With the ‘NSFileWrapperWritingAtomic’ option, the "re-writing" goes well (error = nil). With other options, the "re-writing" does not go well and there is an error ("Error Domain=NSCocoaErrorDomain Code=516 "The file “folderName” couldn’t be saved in the folder “Desktop” because a file with the same name already exists." UserInfo=0x610000069c80 {NSFilePath=/Users/colas/Desktop/folderName, NSUnderlyingError=0x610000041e60 "The operation couldn’t be completed. File exists"}".
Le Dimanche 30 mars 2014 23h58, Quincey Morris <email@hidden> a écrit :
On Mar 30, 2014, at 14:38 , Colas B <email@hidden> wrote:
So do you agree that it is strange that I can "re-write" a folder with ‘NSFileWrapperWritingAtomic’ but not without?
According to your earlier description, you seem to have been able to change a folder’s contents either way, but you couldn’t see the changes in the Finder in one case.
I’d suggest that, at least for now, you don’t rely on the Finder to see what happened.
_______________________________________________
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