• 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: Jens Alfke <email@hidden>
  • Date: Wed, 28 Mar 2012 17:21:31 -0700

On Mar 27, 2012, at 1:50 PM, Rick Mann wrote:

>    if ([fm fileExistsAtPath: url.absoluteString])

This line seems wrong. It should be using the .path property instead of .absoluteString. The latter is the entire URL, including the scheme and the colon, which is not going to be a real filesystem path. (It will be parseable as a path, but it’ll be a relative path whose first component is a directory named “file:”, which is certainly not what you wanted!)

—Jens
_______________________________________________

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: Can't delete file on device
      • From: Charles Srstka <email@hidden>
    • Re: Can't delete file on device
      • From: Rick Mann <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>)
 >Re: Can't delete file on device (From: Roland King <email@hidden>)
 >Re: Can't delete file on device (From: Rick Mann <email@hidden>)
 >Re: Can't delete file on device (From: Mike Abdullah <email@hidden>)
 >Re: Can't delete file on device (From: Rick Mann <email@hidden>)

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