Re: NSFileManager and Finder disk usage discrepancy
Re: NSFileManager and Finder disk usage discrepancy
- Subject: Re: NSFileManager and Finder disk usage discrepancy
- From: Dair Grant <email@hidden>
- Date: Thu, 26 Jan 2006 20:27:49 +0000
Jim Turner wrote:
>On a 160GB drive, NSFileSystemSize reports 156.16GB while the Finder
>says 148.92GB. NSFileSystemFreeSize says 146.09GB while the Finder
>says 139.32.
>
>Anyone have any ideas on why there is a difference and how I could get
>the numbers the Finder is reporting instead of what 'df' reports?
df reports sizes in blocks; the Finder reports the size in bytes, which
will almost always be different.
You can use FSGetVolumeInfo (Files.h) to fetch the total/free values in
bytes as well as blocks.
-dair
___________________________________________________
mailto:email@hidden http://www.zonic.co.uk/
_______________________________________________
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