• 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: hidden files & NSFileManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hidden files & NSFileManager


  • Subject: Re: hidden files & NSFileManager
  • From: Chris Parker <email@hidden>
  • Date: Fri, 17 Jun 2005 13:36:21 -0700


On Jun 17, 2005, at 1:22 PM, Nick Zitzmann wrote:


On Jun 17, 2005, at 1:10 PM, Luc Vandal wrote:


how can I determine if a file/folder is supposed to be hidden or not?


It's not trivial to do, because there are three different ways a file could be hidden:
1. If a file's name begins with a period, then it's hidden
2. There's an "invisible" setting in the HFS+ file attributes; obviously it's hidden if it's set
3. If a file's name is listed inside the .hidden text file in the same directory, then it's hidden


Your program will have to manually check all three places in order to determine if the file is hidden.

...and since NSFileManager doesn't do this, it should. Please file a bug.


.chris

--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: hidden files & NSFileManager
      • From: Nick Zitzmann <email@hidden>
References: 
 >hidden files & NSFileManager (From: Luc Vandal <email@hidden>)
 >Re: hidden files & NSFileManager (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: hidden files & NSFileManager
  • Next by Date: Re: Is there a way to see who is retaining an object?
  • Previous by thread: Re: hidden files & NSFileManager
  • Next by thread: Re: hidden files & NSFileManager
  • Index(es):
    • Date
    • Thread