• 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: Obtain directory size.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtain directory size.


  • Subject: Re: Obtain directory size.
  • From: Jim Correia <email@hidden>
  • Date: Fri, 20 May 2005 12:50:36 -0400

On May 20, 2005, at 12:09 PM, Julian wrote:

Since NSFileManager has no capabilities of returning the size of a folder(a folder + contents), what would be a suitable & fast method for obtaining this besides enumerating as it's slow as christmas. I am looking for perhaps a carbon call to get this in one swoop.

For a directory, call FSGetCatalogInfo, and ask for the valence.

Heed the warning about the cost of computing this for volume formats which don't natively store this information.

<http://developer.apple.com/documentation/Carbon/Reference/ File_Manager/file_manager/chapter_1.5_section_29.html>

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Obtain directory size.
      • From: Chris Parker <email@hidden>
    • Re: Obtain directory size.
      • From: Jim Correia <email@hidden>
References: 
 >Obtain directory size. (From: Julian <email@hidden>)

  • Prev by Date: Re: Getting the NSDateFormatter strings from the user's preferences
  • Next by Date: Re: Obtain directory size.
  • Previous by thread: Re: Obtain directory size.
  • Next by thread: Re: Obtain directory size.
  • Index(es):
    • Date
    • Thread