Re: Obtaining the size of a directory
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