mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-18 17:59:37 +00:00
Ensure author folder is created before extracting files
This commit is contained in:
parent
b350277bbc
commit
ee271519f9
1 changed files with 2 additions and 0 deletions
|
|
@ -216,7 +216,9 @@ class BackupManager {
|
|||
Logger.info(`[BackupManager] Saved backup sqlite file at "${dbPath}"`)
|
||||
|
||||
// Extract /metadata/items and /metadata/authors folders
|
||||
await fs.ensureDir(this.ItemsMetadataPath)
|
||||
await zip.extract('metadata-items/', this.ItemsMetadataPath)
|
||||
await fs.ensureDir(this.AuthorsMetadataPath)
|
||||
await zip.extract('metadata-authors/', this.AuthorsMetadataPath)
|
||||
await zip.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue