Re: NSFileSystemSize
Re: NSFileSystemSize
- Subject: Re: NSFileSystemSize
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 22 Aug 2001 23:04:21 -0700
On Wednesday, August 22, 2001, at 09:01 PM, Michael Stone wrote:
On 8/22/01 9:45 PM, John C. Randolph at email@hidden wrote:
On Wednesday, August 22, 2001, at 08:35 PM, Michael Stone wrote:
I'm using fileSystemAttributesAtPath:NSHomeDirectory() to get the
total
disk
space via NSFileSystemSize, but it's returning 788MB when I really
have
4700MB. NSFileSystemFreeSize returns a correct value of 2878MB. Does
anyone
know why NSFileSystemSize is returning an incorrect value?
Isn't NSFileSystemSize supposed to say how much space the filesystem
has
*used*?
If that's the case, it should be returning 2103MB for my system.
Instead, it
returns 788MB.
I believe it's supposed to report the space taken by the tree starting
at the given path. You should get the answer of 2103MB if you called
fileSystemAttributesAtPath:@"/".
-jcr
"The problem with trying to child-proof the world, is that it makes
people neglect the far more important task of world-proofing the
child." -- Hugh Daniel