mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Update server/managers/BackupManager.js
This commit is contained in:
parent
409c5f7b75
commit
43a5296dd7
@ -83,7 +83,7 @@ class BackupManager {
|
||||
return res.status(500).send('Invalid backup file')
|
||||
}
|
||||
|
||||
const tempPath = fileUtils.sanitizeFilename(Path.join(this.BackupPath, backupFile.name))
|
||||
const tempPath = Path.join(this.BackupPath, fileUtils.sanitizeFilename(backupFile.name))
|
||||
const success = await backupFile.mv(tempPath).then(() => true).catch((error) => {
|
||||
Logger.error('[BackupManager] Failed to move backup file', path, error)
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user