• 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: Obtaining the size of a directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining the size of a directory


  • Subject: Re: Obtaining the size of a directory
  • From: Kevin Ballard <email@hidden>
  • Date: Tue, 19 Oct 2004 01:15:25 -0400

I'd like to point out something important. du isn't giving you the size of the folder (i.e. all the files in the folder). It's giving you the number of blocks the folder is using. This is much faster to calculate but is also much different than the size. If you have, say, 200 files of 1 byte each it might give you a size rating of 1kb (I believe block size is 512 bytes but I'm not sure).

So du gives you a rough guide to how large a folder is but it's not the same thing as the actual size.

On Oct 18, 2004, at 11:21 AM, Dominik Freyer wrote:

Yes, you're absolutely right about the parameters.
I was overwhelmed when I saw, how fast the du command was able to determine the correct size, even with a big tree behind a folder. Using the Finder it takes much larger amounts of time, sometimes it seems to even forget to recurse the directory and doesn't display anything.

--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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: Obtaining the size of a directory
      • From: Dominik Freyer <email@hidden>
References: 
 >Re: Obtaining the size of a directory (From: Freek Dijkstra <email@hidden>)
 >Re: Obtaining the size of a directory (From: Dominik Freyer <email@hidden>)

  • Prev by Date: Re: No Warning on compilation time with a forgeted @try and @catch
  • Next by Date: using plist fileTypes for NSOpenPanel
  • Previous by thread: Re: Obtaining the size of a directory
  • Next by thread: Re: Obtaining the size of a directory
  • Index(es):
    • Date
    • Thread