Re: NSFileManager & hidden folders
Re: NSFileManager & hidden folders
- Subject: Re: NSFileManager & hidden folders
- From: "Sean McBride" <email@hidden>
- Date: Thu, 26 Jul 2007 11:50:12 -0400
- Organization: Rogue Research
On 7/26/07 3:34 PM, email@hidden said:
>How can I exclude folders with the hidden bit set from being listed by
>NSFileManager's directoryContentsAtPath method? I read somewhere I have to
>do this with Carbon, but don't know where to start looking.
You could use -directoryContentsAtPath: then for each result it gives
you use LSCopyItemAttribute() and kLSItemIsInvisible to decide if the
item is invisible. LSCopyItemAttribute() is the best API to use to
determine visibility as it takes into account the various ways a file
can be invisible (filename starting with a ., invisible bit, etc.).
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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