List of utility methods to do File Exist
boolean | isFileExists(String filePath) is File Exists java.io.File myFile = new java.io.File(filePath); if (myFile.exists()) { return true; } else { return false; |
boolean | isFileExists(String filepath) is File Exists return isFileExists(new File(filepath)); |
boolean | isFileExists(String filePath) determines the existence of file try { return new File(filePath).exists(); } catch (Exception e) { LAST_ERROR = e.getMessage(); e.printStackTrace(); return false; |
boolean | isFileExists(String filePathString) Checks if is file exists. File file = new File(filePathString); if (file.exists() && !file.isDirectory()) return true; return false; |