2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 05:47:21 +08:00

feat: 备份目录不存在时不返回错误

This commit is contained in:
2026-01-23 17:42:28 +08:00
parent 1f8e605f44
commit 05c22835e7

View File

@@ -52,7 +52,7 @@ func (r *backupRepo) List(typ biz.BackupType) ([]*types.BackupFile, error) {
path := r.GetDefaultPath(typ)
files, err := os.ReadDir(path)
if err != nil {
return nil, err
return make([]*types.BackupFile, 0), nil
}
list := make([]*types.BackupFile, 0)