管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-06-19 dbe441f1f86cd7f2257206e2a9619c72042bd5bd
src/main/java/com/lf/server/helper/FileHelper.java
@@ -402,7 +402,7 @@
    /**
     * 根据路径获取文件
     */
    public static void getFilesByPath(List<File> list, String path) {
    public static void getFilesByPath(List<String> list, String path) {
        File file = new File(path);
        if (file.isDirectory()) {
            File[] files = file.listFiles();
@@ -414,11 +414,11 @@
                if (f.isDirectory()) {
                    getFilesByPath(list, f.getPath());
                } else {
                    list.add(f);
                    list.add(f.getPath());
                }
            }
        } else {
            list.add(file);
            list.add(file.getPath());
        }
    }