diff --git a/server/managers/AbMergeManager.js b/server/managers/AbMergeManager.js index 5eb59b7f..d01256e0 100644 --- a/server/managers/AbMergeManager.js +++ b/server/managers/AbMergeManager.js @@ -73,9 +73,10 @@ class AbMergeManager { try { - await fs.mkdir(download.dirpath) + await fs.ensureDir(download.dirpath) } catch (error) { Logger.error(`[AbMergeManager] Failed to make directory ${download.dirpath}`) + Logger.debug(`[AbMergeManager] Make directory error: ${error}`) var downloadJson = download.toJSON() this.clientEmitter(user.id, 'abmerge_failed', downloadJson) return