This commit is contained in:
Yutousama 2022-04-11 13:01:25 +08:00
parent a07e31ebf7
commit 466a1b747f

View File

@ -209,6 +209,7 @@ public class AppTools {
return token; return token;
} }
public static List<File> scanFilePath(String path){ public static List<File> scanFilePath(String path){
Log.i("scan > "+path);
List<File> files=new ArrayList<>(); List<File> files=new ArrayList<>();
File file=new File(path); File file=new File(path);
for (File listFile : Objects.requireNonNull(file.listFiles())) { for (File listFile : Objects.requireNonNull(file.listFiles())) {
@ -216,6 +217,7 @@ public class AppTools {
files.addAll(scanFilePath(listFile.getAbsolutePath())); files.addAll(scanFilePath(listFile.getAbsolutePath()));
}else{ }else{
files.add(listFile); files.add(listFile);
Log.i("add file is > "+listFile.getAbsolutePath());
} }
} }
return files; return files;