Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Names of drives (was Re: A little help for a Mac newbie? :-))



At 12:12 PM 4/30/2004, email@hidden wrote:

| While I have your attention :-) - would anyone also happen to know
| how a Java app can get a list of all drive names currently known
| to MacOSX? I can look in /Volumes for a list of names - but it
| does not include the name for the system drive (which happens to be
| the one I need). And java.io.File.listRoots() just returns "/" -
| which is true, but not what I need...

You're not clear here. You say that you want a list of all the volumes. But you also say that the system drive is the one you need, implying that you don't actually need the others, but then go on to reject listRoot() which returns what you say you need. Again, explanation of what it is you're trying to accomplish would be helpful.

OK. Acrobat gives me a pathname "/A/B/C". On MacOSX, it looks like
A is always the disk name, while /B/C is a pathname within that disk.
My problem is that I cannot use what I get directly - /A/B/C does
not exist on the filesystem. I have to use /B/C (if A is the book disk)
or I guess /Volumes/A/B/C otherwise. I was hoping to be able to tell
which of the two was appropriate, rather than try one, then the other.
And yes, I could always try one, then the other.

listRoot() does not seem to be what I want/need. It only returns
"/" - which is not the name of a disk, boot or otherwise.
(Why did you say that listRoot() returns what I said I needed?)

Moises
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >A little help for a Mac newbie? :-) (From: Moises Lejter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.