• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Counting the number of files in a directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:20:21 +1100


On 06/03/2007, at 3:09 PM, Michael Watson wrote:

You don't need to call a command-line utility.

int pants = [[[NSFileManager defaultManager] fileContentsAtPath:@"/ your/path/here"] count];


-- m-s

FSGetCatalogInfo is likely to be considerably more efficient on HFS+ volumes.


- 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

  • Follow-Ups:
    • Re: Counting the number of files in a directory
      • From: Rob Keniger <email@hidden>
    • Re: Counting the number of files in a directory
      • From: Ken Tozier <email@hidden>
References: 
 >Counting the number of files in a directory (From: dew drops <email@hidden>)
 >Re: Counting the number of files in a directory (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: UInt8 > NSString
  • Next by Date: Cocoaheads Lake Forest, CA meeting Tuesday, 3/6
  • Previous by thread: Re: Counting the number of files in a directory
  • Next by thread: Re: Counting the number of files in a directory
  • Index(es):
    • Date
    • Thread