Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager & hidden folders



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >NSFileManager & hidden folders (From: email@hidden)
 >Re: NSFileManager & hidden folders (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.