On Mar 28, 2012, at 17:21 , Jens Alfke wrote: > > 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!)
Yep, discovered this yesterday, although that line was introduced after I changed the code to use file URLs a little more consistently. It all works now, but I'm still not sure why I could have the file exist and still not be deleted, and why it would work on the sim but not the device. -- Rick _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com