• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing a file via NSFileWrapper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Removing a file via NSFileWrapper
      • From: Quincey Morris <email@hidden>
References: 
 >Removing a file via NSFileWrapper (From: Colas B <email@hidden>)
 >Re: Removing a file via NSFileWrapper (From: Mike Abdullah <email@hidden>)
 >Re: Removing a file via NSFileWrapper (From: Colas B <email@hidden>)
 >Re: Removing a file via NSFileWrapper (From: Quincey Morris <email@hidden>)
 >Re: Removing a file via NSFileWrapper (From: Colas B <email@hidden>)
 >Re: Removing a file via NSFileWrapper (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Preparation for doing a bug report for CIPageCurlTransition
  • Next by Date: Re: Removing a file via NSFileWrapper
  • Previous by thread: Re: Removing a file via NSFileWrapper
  • Next by thread: Re: Removing a file via NSFileWrapper
  • Index(es):
    • Date
    • Thread