title: Java: how to determine the type of drive a file is located on?
body: <p>Is there a platform-independent way with Java to detect the type of drive a file is located on? Basically I'm interested to distinguish between: <strong>hard disks</strong>, <strong>removable drives</strong> (like USB sticks) and <strong>network shares</strong>. JNI/JNA solutions won't be helpful. Java 7 can be assumed.</p>