mirror of
https://github.com/tnb-labs/panel.git
synced 2026-08-30 17:05:19 +08:00
fix: 过滤非备份文件
This commit is contained in:
@@ -876,6 +876,9 @@ func (r *backupRepo) FixPanel() error {
|
||||
}
|
||||
var list []os.FileInfo
|
||||
for _, file := range files {
|
||||
if !r.isBackupArchive(file.Name()) {
|
||||
continue
|
||||
}
|
||||
info, infoErr := file.Info()
|
||||
if infoErr != nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user