Re: Volume info in Cocoa
Re: Volume info in Cocoa
- Subject: Re: Volume info in Cocoa
- From: Vince DeMarco <email@hidden>
- Date: Tue, 21 Jan 2003 20:24:09 -0800
On Tuesday, January 21, 2003, at 10:49 AM, Kevin Elliott wrote:
At 10:41 -0800 on 1/21/03, Christian Longshore Claiborn wrote:
How does NSWorkspace's - (NSArray *)mountedLocalVolumePaths work for
you?
NSWorkspace is a great grab-bag full of useful info. I use
CocoaBrowser
(http://homepage2.nifty.com/hoshi-takanori/cocoa-browser/) for quick
references like this.
Christian
Yeah, I'm already using it. The problem is that I need more info on a
given volume.
I thought
"getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:descript
ion:type:"
Might work for part of it, but I get null returns on all the string
arguments. Moreover, I need inforamtion about drive capacity, etc.
that it does not supply. I've also tried NSFileManagers
"fileAttributesAtPath:traverseLink:" but it returns the directory
size, no the size of all the data contained in the directory, which is
clearly not what I'm interested it.
Anybody else got any ideas?
--
Get the path and call statfs()
man 2 statfs
vince
_______________________________________________
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.