mirror of https://github.com/halo-dev/halo
😢 修复无备份时,备份页面异常的问题
parent
18a60f07f1
commit
3c1f251b88
|
@ -124,6 +124,7 @@ public class HaloUtils {
|
||||||
List<BackupDto> backupDtos = new ArrayList<>();
|
List<BackupDto> backupDtos = new ArrayList<>();
|
||||||
BackupDto backupDto = null;
|
BackupDto backupDto = null;
|
||||||
//遍历文件
|
//遍历文件
|
||||||
|
if(null != files){
|
||||||
for (File file : files) {
|
for (File file : files) {
|
||||||
if (file.isFile()) {
|
if (file.isFile()) {
|
||||||
if (StringUtils.equals(file.getName(), ".DS_Store")) {
|
if (StringUtils.equals(file.getName(), ".DS_Store")) {
|
||||||
|
@ -138,6 +139,7 @@ public class HaloUtils {
|
||||||
backupDtos.add(backupDto);
|
backupDtos.add(backupDto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return backupDtos;
|
return backupDtos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue