Correctly determine name for archive files when decompressing; closes pterodactyl/panel#3296

This commit is contained in:
Dane Everitt
2021-04-25 15:36:00 -07:00
parent 35ba6d7524
commit daaef5044e
2 changed files with 37 additions and 2 deletions

View File

@@ -78,6 +78,6 @@ func (b *LocalBackup) Restore(_ io.Reader, callback RestoreCallback) error {
if f.IsDir() {
return nil
}
return callback(f.Name(), f)
return callback(filesystem.ExtractNameFromArchive(f), f)
})
}