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: Michael Watson <email@hidden>
- Date: Mon, 5 Mar 2007 23:11:24 -0500
Oops, this should've been:
int pants = [[[NSFileManager defaultManager]
directoryContentsAtPath:@"/your/path/here"] count];
--
On 05 Mar, 2007, at 23:09, Michael Watson wrote:
You don't need to call a command-line utility.
int pants = [[[NSFileManager defaultManager] fileContentsAtPath:@"/
your/path/here"] count];
--
m-s
On 05 Mar, 2007, at 22:58, dew drops wrote:
Hi everyone,
I assume that one can call unix commands in Cocoa. Is
there a way to count the number of files in a
directory?
Thanks
Dew.
_____________________________________________________________________
_______________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
_______________________________________________
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:
40bungie.org
This email sent to email@hidden
_______________________________________________
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