• 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: Dominik Freyer <email@hidden>
  • Date: Tue, 19 Oct 2004 14:14:21 +0200

Ok. That shouldn't be a big problem, since I only need a ratio between the directory sizes. I hope at least. :-)


Am 19.10.2004 um 07:15 schrieb Kevin Ballard:

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

_______________________________________________
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
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>)
 >Re: Obtaining the size of a directory (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: moved project won't rebuild or clean
  • Next by Date: NSTableView again
  • Previous by thread: Re: Obtaining the size of a directory
  • Next by thread: Re: Obtaining the size of a directory
  • Index(es):
    • Date
    • Thread