src/main/java/com/moon/server/helper/FileHelper.java
@@ -401,7 +401,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(); @@ -413,11 +413,11 @@ if (f.isDirectory()) { getFilesByPath(list, f.getPath()); } else { list.add(f); list.add(f.getPath()); } } } else { list.add(file); list.add(file.getPath()); } }