add note
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user