• 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
today's bug (?): getFileSystemInfoForPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Prev by Date: Re: NSAlertPanel.beginAlertSheet
  • Next by Date: Disabling some compiler warnings
  • Previous by thread: Re: Working with Strings
  • Next by thread: Disabling some compiler warnings
  • Index(es):
    • Date
    • Thread