This commit is contained in:
Girish Ramakrishnan
2024-06-06 15:16:01 +02:00
parent 3c7d24916c
commit 52701e1173
+1
View File
@@ -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 });