aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Java API locating directoires Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java API locating directoires" Watch "Java API locating directoires" New topic
Author

Java API locating directoires

deepa anandan
Greenhorn

Joined: Jun 06, 2006
Posts: 24
Hi,

Can you please specify is there an API in java that finds out the name and number of drives present in the system.

Since I need to identify a directory XYZ in my local machine.

Kind regards,
Deepa
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
Check out the java.io.File.listRoots method.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java API locating directoires