Re: Counting the number of files in a directory
Re: Counting the number of files in a directory
- Subject: Re: Counting the number of files in a directory
- From: Christopher Hickman <email@hidden>
- Date: Tue, 6 Mar 2007 07:13:48 -0500
On Mar 6, 2007, at 12:04 AM, Ken Tozier wrote:
You could make a reusable category on NSFileManager like this
@interface NSFileManager (CatInfo)
+ (int) filesInDirectory:(NSString *) inPath;
@end
I wouldn't use this method name, because according to standard
conventions one would assume a method with a name like this would
return an array of files. I'd use +countOfFilesInDirectory: instead.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden