• 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: NSFileSystemSize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSFileSystemSize
      • From: Michael Stone <email@hidden>
References: 
 >Re: NSFileSystemSize (From: Michael Stone <email@hidden>)

  • Prev by Date: Re: Help on adding help
  • Next by Date: Fun and games with Applescript "Standard Suite" in Cocoa app.
  • Previous by thread: Re: NSFileSystemSize
  • Next by thread: Re: NSFileSystemSize
  • Index(es):
    • Date
    • Thread