List of usage examples for javax.swing.filechooser FileSystemView isFloppyDrive
public boolean isFloppyDrive(File dir)
From source file:org.dbgl.util.FileUtils.java
public static boolean isStoredOnFloppyDrive(File file) { if (PlatformUtils.IS_OSX) return false; // FileSystemView doesn't work on OSX and leads to freeze on application exit FileSystemView fsv = FileSystemView.getFileSystemView(); for (File f : File.listRoots()) { if (areRelated(f, file)) { return fsv.isFloppyDrive(f); }/*w w w. ja v a 2 s. c om*/ } return false; }