excel工具类优化,自动创建文件夹
parent
7a3075ffe9
commit
e63d4612c5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue