master
周文涛 2 years ago
parent e4b06cc9cc
commit 6e829fc65a

@ -39,9 +39,23 @@ public class FileOUtils {
return null;
}
}else{
File file = new File(sourceImages);
if (file.exists()) {
File[] files1 = file.listFiles();
for (File file1 : files1) {
files.add(file1.getAbsolutePath());
}
}else{
//AssertUtils.isTrue(file.exists(),"该目录不存在");
}
//本地文件
throw new JeecgBootException("当前不支持本地目录");
//throw new JeecgBootException("当前不支持本地目录");
}
return files;
}
public static void main(String[] args) {
List<String> stringList = fileLists("E:\\workspace_2\\ocr\\images1");
System.out.println(stringList);
}
}

Loading…
Cancel
Save