views:

45

answers:

1

I'm writing a disk crawler and if the user doesn't provide an existing path the program should search all disks that are available. Does anybody know is it possible and if it is how to do that from Java?

+3  A: 

Try this:

File.listRoots();
Eric Petroelje