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: Chris Suter <email@hidden>
- Date: Tue, 6 Mar 2007 15:08:50 +1100
On 06/03/2007, at 2:58 PM, 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.
You could use FSGetCatalogInfo. Look at valence. It's possible that
it won't return the correct value if there are more than 32,767 files
in the folder so you should check that if it's important to you.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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