Re: Searching for Specific Files/Problem with hiding on login
Re: Searching for Specific Files/Problem with hiding on login
- Subject: Re: Searching for Specific Files/Problem with hiding on login
- From: Thomas Harrington <email@hidden>
- Date: Fri, 18 Jul 2003 12:48:51 -0600
On Wednesday, July 16, 2003, at 08:44 PM, Simone Manganelli wrote:
First, I'm wondering what the best way is to search (a) user's hard
drive(s) for a specific application or file. For example, what if I
wanted to find out where a user placed the application "OmniWeb" on
his hard drive. And, coming off of that question, how would I
identify if the user doesn't have the required app/file? Would I
refer to the file by the get info string, the exact size, or what?
(Obviously I have no experience in this area, so I'm shooting in the
dark.)
How about:
NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager]
enumeratorAtPath:@"/"];
Depending on the situation, it might be best to run this in a separate
thread.
--
Tom Harrington
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.