List of utility methods to do Directory Validate
boolean | dirWritable(File dirFile) dir Writable try { if (!dirFile.isDirectory()) return false; File testFile = File.createTempFile("test", "tmp", dirFile); testFile.delete(); return true; } catch (IOException e) { return false; ... |
boolean | isValidDirectory(String path) A simple check that the directory path is a valid one for the current OS. File file = new File(path); try { file.getCanonicalPath(); return true; } catch (IOException e) { return false; |