Re: testing for invisible files in a file browser
Re: testing for invisible files in a file browser
- Subject: Re: testing for invisible files in a file browser
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 8 Aug 2006 17:58:52 -0600
On Aug 8, 2006, at 5:17 PM, Tyler Riddle wrote:
For instance,
when pointed at /etc (which is invisible to the finder on my machine),
the returned value indicates the folder is visible. I'm at a loss as
to why the code does not work. Can anyone provide some insight?
In addition to what was already mentioned, there are three different
ways that a file may be marked as invisible:
1. The Finder metadata has the hidden bit set
2. The file/folder is listed in the .hidden file, if present
3. The file/folder name begins with a period
/etc is covered by case #2. You'll have to check for all three cases
on each file you wish to test.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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