• 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: Anybody using NSFileManager here?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anybody using NSFileManager here?


  • Subject: Re: Anybody using NSFileManager here?
  • From: "Gary L. Wade" <email@hidden>
  • Date: Thu, 14 Apr 2011 11:44:59 -0700
  • Thread-topic: Anybody using NSFileManager here?

The documentation sounds more like it's a convenience method for checking
the Unix permissions for deleting the file rather than the HFS locked
setting.  If you want to consider another non-HFS-aware issue in
NSFileManager, the file size info you get from the relevant message only
returns the size of a file's datafork, not its resource fork or any other
theoretical forks a file may have.  For those who believe no one uses
resource forks, just look at Safari's in-progress downloads and Finder
clippings.

On 04/14/2011 11:26 AM, "Laurent Daudelin" <email@hidden>
wrote:

>Is it normal that NSFileManager's isDeletableFileAtPath: returns YES for
>a locked file? Based on the result it returns, when I try to send it a
>removeItemAtPath:error:, it fails and the error localized description is
>'³This is a test.docx² couldn¹t be removed because you don¹t have
>permission to access it.'. That seems wrong to me. First,
>isDeletableFileAtPath: shouldn't return YES for a locked file.
>


_______________________________________________

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: Anybody using NSFileManager here?
      • From: Laurent Daudelin <email@hidden>
References: 
 >Re: Anybody using NSFileManager here? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: Anybody using NSFileManager here?
  • Next by Date: Re: Lockless thread-safe accessor using blocks: how to?
  • Previous by thread: Re: Anybody using NSFileManager here?
  • Next by thread: Re: Anybody using NSFileManager here?
  • Index(es):
    • Date
    • Thread