public static void clearFiles(String filePath){ File scFileDir = new File(filePath); File TrxFiles[] = scFileDir.listFiles(); for(File curFile:TrxFiles ){ curFile.delete(); } }
String filePath="D:\files\wxpay"
public static void clearFiles(String filePath){ File scFileDir = new File(filePath); File TrxFiles[] = scFileDir.listFiles(); for(File curFile:TrxFiles ){ curFile.delete(); } }
String filePath="D:\files\wxpay"