• 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: "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

  • Follow-Ups:
    • Re: NSFileManager & hidden folders
      • From: email@hidden
References: 
 >NSFileManager & hidden folders (From: email@hidden)

  • Prev by Date: Re: Filling bezier path with the image
  • Next by Date: Re: [OT] Re: Is pointer syntax logical?
  • Previous by thread: NSFileManager & hidden folders
  • Next by thread: Re: NSFileManager & hidden folders
  • Index(es):
    • Date
    • Thread