This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there some java API which could list all the volumes available on a windows system? That is, suppose, I have C:\, D:\ volumes and there a Z:\ which is pointing to C:\abcd, is there a way to just get C:\ and D:\ listed? Or is there some API which can check if Z:\ is actually referring to some folder under C:\ only?
Thanks in advance,
Joined: May 24, 2008
And, just to add, I tried using File::listRoots but that returns all the drive letters i.e. C:\ , D:\ and Z:\ in the example I mentioned above.