commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Zeitlinger" <gre...@zeitlinger.de>
Subject Re: [io] FileSystemUtils.getDrives?
Date Sun, 29 Oct 2006 15:34:20 GMT
> 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


Mime
View raw message