Re: NSFileManager - getting list of "safe" files/folders [update]
Re: NSFileManager - getting list of "safe" files/folders [update]
- Subject: Re: NSFileManager - getting list of "safe" files/folders [update]
- From: Duncan Campbell <email@hidden>
- Date: Wed, 22 Jun 2005 08:16:56 +1000
Ok, I've got this down to the following files:
/etc
/mach.sym (link to 2nd)
/mach.sym (yes this is twice)
/tmp
/var
Now, ALL of the above are symlinks to hidden files *except* the 2nd
"mach.sym" which is a file, and (according to LSCopyItemInfoForURL)
does *not* have it's hidden bit set.
Any ideas folks - I'm so close here!
Cheers.
Each of these are symlinks to hidden files. So just ignore files
that point to hidden files.
On 22/06/2005, at 1:26 AM, Prachi Gauriar wrote:
On Jun 21, 2005, at 12:36 AM, Duncan Campbell wrote:
Hi folks - sorry I didn't search the forums first, and I know this
has been asked before but I cannot find a *complete* solution.
I found some good sample code in this posting:
http://www.cocoabuilder.com/archive/message/2003/11/13/1214
the general consensus seems to be:
* Ignore files beginning with "."
* Ignore files in /.hidden
* Ignore files who's HFS "invisible" flag is set
* Remove some other "special" folders (like "/Network") - does
anyone know how to do this?
However, even following all of the above I am still getting too
many files!
If I follow the above techniques, and i look at my "/" directory,
I still get the following "bad" items:
/etc <dir>
/mach.sym
/mach.sym (this second one is a sym-link to the first)
/tmo
/var
Any ideas?
-Prachi
Duncan Campbell
=====================
http://www.duncanandsarah.com
_______________________________________________
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