优化日志录入,解决360极速浏览器无法启用极速模式的问题

This commit is contained in:
2018-04-26 18:49:09 +08:00
parent 8011ce135e
commit 7c1c22673a
8 changed files with 39 additions and 40 deletions

View File

@@ -262,11 +262,13 @@ public class DownLoadController {
public List<String> getFileString(String fileDir) {
List<File> fileList = new ArrayList<File>();
File file = new File(fileDir);
File[] files = file.listFiles();// 获取目录下的所有文件或文件夹
// 获取目录下的所有文件或文件夹
File[] files = file.listFiles();
List<String> path = new ArrayList<String>();
List<String> name = new ArrayList<String>();
int i = 0, j = 0;
if (files == null) {// 如果目录为空,直接退出
// 如果目录为空,直接退出
if (files == null) {
path.add("空目录");
return path;
}