• 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 fun & games
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager fun & games


  • Subject: Re: NSFileManager fun & games
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 1 Dec 2004 08:48:16 +0100

At 17:29 Uhr +1100 01.12.2004, Duncan Campbell wrote:
I would like to only produce the list of files/folder you get when you click on the "Macintosh HD" icon on the desktop - i.e. beginning with "Applications", not showing any of the "." files/folders (hidden) etc.... - is there a method to produce this list?

Obviously I could just look for a "." as the 1st char of the filename, but it seems there would be a method that gives me what i am after, based on permissions etc?

It's more complicated than that:

1) Hide filenames starting with a "."
2) Hide root-level files whose names are mentioned in the /.hidden file
3) Hide files wholes HFS "invisible" flag is set
4) Hide the /Network folder, and probably others Finder doesn't show

This has been asked and answered in detail on this list before. Check the archives if this information isn't enough for you.
--
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: NSFileManager fun & games
      • From: Duncan Campbell <email@hidden>
  • Prev by Date: RE: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Next by Date: Re: NSFileManager fun & games
  • Previous by thread: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Next by thread: Re: NSFileManager fun & games
  • Index(es):
    • Date
    • Thread