excel工具类优化,自动创建文件夹

back_recharge
duhui 2021-03-17 18:27:24 +08:00
parent 7a3075ffe9
commit e63d4612c5
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ public class ExcelUtils {
public static void main(String[] args) throws Exception {
File oldfile = new File(path);
if (!oldfile.exists()&&!oldfile.isDirectory()){
oldfile.mkdir();
}
String[] list = oldfile.list();
oldFileNames.addAll(Arrays.asList(list));
readExcelData();