diff --git a/src/apptask.js b/src/apptask.js index 37155a3f1..6d386116f 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -109,6 +109,7 @@ async function deleteContainers(app, options) { async function createAppDir(app) { assert.strictEqual(typeof app, 'object'); + // we have to create app dir regardless of localstorage addon. this dir is used as a temp space for backup dumps const appDir = path.join(paths.APPS_DATA_DIR, app.id); const [error] = await safe(fs.promises.mkdir(appDir, { recursive: true })); if (error) throw new BoxError(BoxError.FS_ERROR, `Error creating directory: ${error.message}`, { appDir });