io - Is it possible to discover plugged disks from Java? -


I am writing a disk crawler and if the user does not provide the current path then the program should search all the disks available. Does anyone know if this is possible and if Java is to do this?

Try it out:

  File.listRoots ();  

Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -