• 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: Filtering out all invisible files in a file system browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering out all invisible files in a file system browser


  • Subject: Re: Filtering out all invisible files in a file system browser
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 9 Nov 2004 18:10:25 +0100

At 16:56 Uhr +0000 09.11.2004, Jeremy Dronfield wrote:
I'd assumed there would be some way of filtering out all these invisible files. Do I have to check individually by name for all the ones which don't have "." prefixes and don't (seem to) have the kIsInvisible flag?

No, there isn't. There are three criteria which files are invisible, "." at the start of the name, kIsInvisible and name is in the ".hidden" file. IIRC there were even a few special folders (Network?) which weren't in either of these lists but were not shown anyway.


You'll also want to skip 'special' Unix files. But that's easy, because they usually cause an error when you try to create an FSRef for them.

I'm passing all files on the system through the -isVisible filter, and I'm not seeing any errors.

Well, I got some. It may have been when listing the /dev directory... I just decided to check for that error and in that case fail silently.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Filtering out all invisible files in a file system browser
      • From: "John C. Daub" <email@hidden>
    • Re: Filtering out all invisible files in a file system browser
      • From: Jeremy Dronfield <email@hidden>
References: 
 >Filtering out all invisible files in a file system browser (From: Jeremy Dronfield <email@hidden>)
 >Re: Filtering out all invisible files in a file system browser (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Filtering out all invisible files in a file system browser (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: NSWindowController maddness!
  • Next by Date: Re: Digital Video Broadcast
  • Previous by thread: Re: Filtering out all invisible files in a file system browser
  • Next by thread: Re: Filtering out all invisible files in a file system browser
  • Index(es):
    • Date
    • Thread