Is there an API that can provide me more in depth information on a file/directory on the disk? For e.g. I would want to know if a drive is a root drive or a floppy drive , a file is a hidden file etc..?
Thanks
Shafi
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The java file API is sort of the minimum common denominator between the various platforms, e.g. not all platforms have the concept of drives.
You can get all the root drives with File.listRoots() , and you can check if it’s hidden with File.isHidden()