From ee271519f9d3fe3e7844a5920e89b125e9e41808 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Sun, 21 Jul 2024 18:04:46 +0000 Subject: [PATCH] Ensure author folder is created before extracting files --- server/managers/BackupManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/managers/BackupManager.js b/server/managers/BackupManager.js index 13493952..b8b1beea 100644 --- a/server/managers/BackupManager.js +++ b/server/managers/BackupManager.js @@ -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()