Re: hidden files & NSFileManager
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