List of utility methods to do File Exist
boolean | isFileExist(String path, String fileName) is File Exist File file = new File(path + fileName); return file.exists(); |
boolean | isFileExist(String pathAndFileName) Tests whether the file denoted by this abstract pathname is a normal file. ReporterNGExt.logTechnical(String.format("isFileExist: %s", pathAndFileName)); File findFile = new File(pathAndFileName); return findFile.isFile(); |
boolean | judgeFileExist(String p_sFilePath) Judge the given file exists or not boolean t_sIsExist = false; File t_TmpFile = null; try { t_TmpFile = new File(p_sFilePath); if (t_TmpFile.exists()) { t_sIsExist = true; } else { t_sIsExist = false; ... |
boolean | isExistFile(String name) is Exist File File file = new File(name); return file.exists(); |
boolean | isFileExists(String filename) is File Exists File file = new File(filename); return file.exists(); |
Boolean | isExist(String absPath) is Exist File f = new File(absPath); return f.exists(); |
boolean | isExistFile(String name) is Exist File File file = new File(name); return file.exists(); |
boolean | fileExists(String filePath) file Exists File file = new File(filePath); return file.exists(); |
boolean | fileExists(String fname) file Exists return new File(fname).exists(); |
boolean | fileExists(String path) file Exists return new File(path).exists(); |