• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSFileManager & hidden folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: NSUserDefaults for another Application
  • Next by Date: Re: NSFileManager & hidden folders
  • Previous by thread: Re: NSFileManager & hidden folders
  • Next by thread: Re: NSFileManager & hidden folders
  • Index(es):
    • Date
    • Thread