Re: NSFileSystemSize
Re: NSFileSystemSize
- Subject: Re: NSFileSystemSize
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 23 Aug 2001 20:31:23 +0100
On Thursday, August 23, 2001, at 07:47 pm, Tommy Knowlton wrote:
Looking at the docs for fileSystemAttributesAtPath, it seems probable
that your 4700MB overflows 32 bits worth of unsigned int, if units are
bytes.
Then, the high-order stuff having OF'ed out, you might be seeing that
788MB == (4700MB) % (1 << 32).
That doesn't seem to be "quite" mathematically correct, though I'm
guessing there is lots of rounding/estimation error in the figures you
supplied.
Taking into account the large sizes of modern disks, perhaps it should
be upgraded to unsigned long?
-- Finlay