Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
List the Drives in Windows
I am trying to use a TreeTable with FileSystemContainer. When I call
FilesystemContainer files = new FilesystemContainer( new File( "/" ), fileFilter, false );
in Windows it seems to show the contents of c:\. How can I make it show a list of all currently mounted volumes?
Last updated on
I found this
File[] roots = File.listRoots();
for(int i=0;i<roots.length;i++)
System.out.println("Root["+i+"]:" + roots[i]);
So the question now is if I can load a TreeTable with the results of File.listRoots() and then if/when someone expands it, load the child node with a FileSystemContainer withe appropriate drive as a root directory...
Last updated on
You cannot reply to this thread.