> What about File.listRoots() ?
It returns / on Linux, even if /var (for example) is a different mount point
(see http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#listRoots())
Other than that, it would probably work.
But there are other methods beyond freeSpace that make sense for a
drive/mount point.
1) isReady
2) isRemovable
etc.
Therefore, Drive should be it's own class.
--
Gregor Zeitlinger
gregor@zeitlinger.de
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
|