From: Johannes Zellner Date: Tue, 1 Mar 2016 16:34:57 +0000 (+0100) Subject: Use the force X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git;a=commitdiff_plain;h=e90afd41771b60816d333617183440b2f2739043 Use the force --- diff --git a/src/files.js b/src/files.js index 68dfea3..8a4115f 100644 --- a/src/files.js +++ b/src/files.js @@ -159,7 +159,7 @@ function del(req, res, next) { // add globs to get file listing if (result.isDirectory()) absoluteFilePath += '/**'; - rm(absoluteFilePath, { dryRun: dryRun }).then(function (result) { + rm(absoluteFilePath, { dryRun: dryRun, force: true }).then(function (result) { result = result.map(removeBasePath); next(new HttpSuccess(200, { entries: result })); }, function (error) {