Re: NSFileManager & hidden folders
Re: NSFileManager & hidden folders
- Subject: Re: NSFileManager & hidden folders
- From: email@hidden
- Date: Thu, 26 Jul 2007 18:44:09 +0200
Thank you.
On 7/26/07, Sean McBride <email@hidden> wrote:
>
> 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