Re: NSFileSystemFreeSize troubles
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.