NSFileManager - getting list of "safe" files/folders
NSFileManager - getting list of "safe" files/folders
- Subject: NSFileManager - getting list of "safe" files/folders
- From: Duncan Campbell <email@hidden>
- Date: Tue, 21 Jun 2005 12:33:05 +1000
If I use something like:
NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *array = [fileManager directoryContentsAtPath:fullPath]
I can get an array of files/folders from any path.
If I do this with "/", I get lots of files & folders that I perhaps "shouldn't" see - i.e. terminal would list them, but Finder doesn't (folders like "automount" and "cores" and files like "mach.sym" and "mach_kernel" ).
Is there a way for me to filter out these folders to replicate the list that Finder gives me?
Cheers for any help.
D.
|
_______________________________________________
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