• 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: NSFileManager and Finder disk usage discrepancy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: CoreData: Intermittent crash in -[NSSQLRow dealloc]
  • Next by Date: Re: Are there any NSUserDefaults keys which aren't valid?
  • Previous by thread: NSFileManager and Finder disk usage discrepancy
  • Next by thread: [COREDATA] fetchRequest performance problem, any advice ?
  • Index(es):
    • Date
    • Thread