public static boolean WhetherExistTXTFile(){
String path = "D:\\UAT\\Node0\\Attrquery";
File file = new File(path);
File filelist[] = file.listFiles();
for(File f : filelist){
String filename = f.getName();
if(filename.endsWith("txt")){
logger.info("Existence of txt file : " + f.getAbsolutePath());
return true;
}
}
return false;
}