today's bug (?): getFileSystemInfoForPath
today's bug (?): getFileSystemInfoForPath
- Subject: today's bug (?): getFileSystemInfoForPath
- From: Markus Hitter <email@hidden>
- Date: Sun, 15 Jul 2001 19:28:54 +0200
Hello,
to find out something about the nature of a Volume, I tried this:
BOOL removable, writable, unmountable;
NSString *description, *fsType;
/* NSWorkspace's -getFileSystemInfoForPath doesn't*/
if ([[NSWorkspace sharedWorkspace]
getFileSystemInfoForPath:@"/Volumes/Archiv"
isRemovable:&removable isWritable:&writable
isUnmountable:&unmountable description:&description
type:&fsType]) {
NSLog(@"removable: %c", removable);
NSLog(@"writable: %c", writable);
NSLog(@"unmountable: %c", unmountable);
NSLog(@"description: %@", description);
NSLog(@"fsType: %@", fsType);
The three booleans give what I expect. Unfortunately, for description
and fsType I get back a nil. Am I doing something wrong or is this just
nor functional?
Thanks,
Markus
P.S.:
I'm sorry to bother you so often, but I can't find a better way of
verifying problems. This list's archives are not searchable, "John Doe"
developers are not welcome at bugreport.apple.com,
opensource.apple.com/bugreport is for Darwin only, til.info.apple.com
didn't find anything about "getFileSystemInfoForPath" like to all other
search engines I found at *apple.com.
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/