From java is it possible to locate the root directories and files residing them, from the machines in the local network ? The static method
File.listRoots() returns a File[] array listing all the system root directories. On Unix OSs, including Linux, that will return the single root directory ("/"); on Windows platforms it will return the roots of all mounted drives on the system. You can then recursively create a tree structure of the file systems by
testing whether or not each file is a directory with
File.isDirectory() and if it is you can call
File.listFiles() which also returns a File[] array.
[ May 28, 2003: Message edited by: Michael Morris ]
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher