• 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: Can't delete file on device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't delete file on device


  • Subject: Re: Can't delete file on device
  • From: Rick Mann <email@hidden>
  • Date: Tue, 27 Mar 2012 11:18:15 -0700

Yet, I check for the existence of the file before to verify its there, as you can see in the output.

Sent from my iPhone

On Mar 27, 2012, at 11:15, Mike Abdullah <email@hidden> wrote:

> Well error code 4 is NSFileNoSuchFileError. I think you're trying to delete a file that doesn't exist!
>
> On 27 Mar 2012, at 03:22, Rick Mann wrote:
>
>> I'm trying to delete some image files I cache. Here's what I'm getting:
>>
>> 2012-03-26 19:20:14.330 MyApp[5765:707] File exists: /var/mobile/Applications/6BBF21B1-97B3-4016-88B0-FE1C18D736D7/Library/Caches/Images/4149/5414582865_932fac9c82_b.jpg
>>
>> 2012-03-26 19:20:14.332 MyApp[5765:707] Unable to delete file at /var/mobile/Applications/6BBF21B1-97B3-4016-88B0-FE1C18D736D7/Library/Caches/Images/4149/5414582865_932fac9c82_b.jpg: Error Domain=NSCocoaErrorDomain Code=4 "The operation couldn’t be completed. (Cocoa error 4.)" UserInfo=0x278590 {NSURL=/var/mobile/Applications/6BBF21B1-97B3-4016-88B0-FE1C18D736D7/Library/Caches/Images/4149/5414582865_932fac9c82_b.jpg}
>> {
>>   NSURL = "/var/mobile/Applications/6BBF21B1-97B3-4016-88B0-FE1C18D736D7/Library/Caches/Images/4149/5414582865_932fac9c82_b.jpg";
>> }
>>
>> This doesn't happen in the simulator. Xc4.3.2, iOS 5.1 9B176

_______________________________________________

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


References: 
 >Can't delete file on device (From: Rick Mann <email@hidden>)
 >Re: Can't delete file on device (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Can't delete file on device
  • Next by Date: Re: How to throttle rate of NSInputStream?
  • Previous by thread: Re: Can't delete file on device
  • Next by thread: Re: Can't delete file on device
  • Index(es):
    • Date
    • Thread