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

Re: NSFileSystemFreeSize troubles


  • Subject: Re: NSFileSystemFreeSize troubles
  • From: Hamish Allan <email@hidden>
  • Date: Tue, 4 Feb 2003 20:53:51 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ben,

Do you have your other filesystems mounted at "/Volumes"? The code here is returning the free space for "/", which will be the free space for your startup disk plus the free space for all your other disks. Try adding NSFileSystemFreeSize and NSFileSystemSize to see if you get what you would expect.

Hope this helps,
Hamish

On Monday, Feb 3, 2003, at 14:47 Europe/London, stupidFish programming wrote:

Hi, the following function call gives me incorrect free space values
for my startup disk, but works great for every other disk or
partition. any ideas?

thanks,
ben

NSLog(@"%6.2f GB Free", [[[[NSFileManager defaultManager]
fileSystemAttributesAtPath:@"/"] objectForKey:NSFileSystemFreeSize]
floatValue]/1024/1024/1024);
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+QChi6gc2d//pELYRAtmTAJ9poBWbeBpauYnnRRAmaeaAo88tsACfbugJ
Vb03gHpyYgO8OIvPTDRURLo=
=ok0w
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSFileSystemFreeSize troubles (From: stupidFish programming <email@hidden>)

  • Prev by Date: Re: Disadvantages of Bridging Java in Objective-C Cocoa Apps
  • Next by Date: Image Capture Architecture...
  • Previous by thread: NSFileSystemFreeSize troubles
  • Next by thread: getFileSystemInfoForPath troubles
  • Index(es):
    • Date
    • Thread