I’m looking for a way to reliably list all drive letters or volume names
or mount points on a system.
Google has not helped me. Best I could find was
java.io.File.listRoots(), but on my Linux box it simply gives ‘/’ as the
sole root name, despite other devices being mounted.
Ultimately I want to check free disk space. The Apache project’s
org.apache.commons.io.FileSystemUtils has freeSpaceKb, but it needs to
be told the path to check.
Is there some Java/JRuby/Ruby way to do this across Win32, *nix, and
OSX? Pretty please?
Worst case, I fall back to platform detection and some use of regexen
and shell commands. But I thought perhaps someone has blazed this path
Neurogami - Smart application development
To unsubscribe from this list, please visit: