Re: Contents of a directory?
Re: Contents of a directory?
- Subject: Re: Contents of a directory?
- From: Isaac Sherman <email@hidden>
- Date: Sat, 20 Jul 2002 23:08:22 -0400
on 7/20/02 10:13 PM, the method -(id)email@hidden:(id) sender:@"Chris
Roberts"; returned:
>
On Saturday, July 20, 2002, at 06:47 PM, Jaime Magiera wrote:
>
>
> How does one go about getting the contents of a directory? I need an
>
> array of the file names and paths. Is there a function that will return
>
> the whole contents, or do I have to use a single file function in a
>
> loop?
>
>
Umm... would NSFileManager's directoryContentsAtPath:path solve your
problem?
As for paths, I guess you could simply append the filename to path.
--
Isaac Sherman
MotaSoft Software
http://homepage.mac.com/huperzoevs/
_______________________________________________
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.