FileStore... getRootPath() ?

Alan Bateman Alan.Bateman at oracle.com
Wed Jun 30 13:48:38 PDT 2010


John Hendrikx wrote:
> :
>
> Is this an oversight or is there perhaps an even more elegant way to 
> find this information?
>
> Note that even on Linux, with just "one" root (/), the added choice 
> for other volumes (which have different free space values) is 
> invaluable for the user.  In other words, I'd like to present the user 
> with the choice of for example: /, /data, /temp, /raid1 and /raid2.
I think you're looking for the mount points, which FileStore doesn't 
currently make available - it could do, but needs a bit of research to 
make sure that we wouldn't have any issues on other platforms. That 
said,  it's not clear to me that you'd want to present all of them to 
the end-user and there probably isn't an easy way to filter them either.

-Alan.


More information about the nio-dev mailing list