aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2016-03-01 17:34:57 +0100
committerJohannes Zellner <johannes@nebulon.de>2016-03-01 17:34:57 +0100
commite90afd41771b60816d333617183440b2f2739043 (patch)
tree7a64a6aa199b022862012f72970a25500ab0d915 /src
parent470f83e72c9ca1148d0a20eea74ff7194cf3a348 (diff)
downloadSurfer-e90afd41771b60816d333617183440b2f2739043.tar.gz
Surfer-e90afd41771b60816d333617183440b2f2739043.tar.zst
Surfer-e90afd41771b60816d333617183440b2f2739043.zip
Use the force
Diffstat (limited to 'src')
-rw-r--r--src/files.js2
1 files changed, 1 insertions, 1 deletions
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) {
159 // add globs to get file listing 159 // add globs to get file listing
160 if (result.isDirectory()) absoluteFilePath += '/**'; 160 if (result.isDirectory()) absoluteFilePath += '/**';
161 161
162 rm(absoluteFilePath, { dryRun: dryRun }).then(function (result) { 162 rm(absoluteFilePath, { dryRun: dryRun, force: true }).then(function (result) {
163 result = result.map(removeBasePath); 163 result = result.map(removeBasePath);
164 next(new HttpSuccess(200, { entries: result })); 164 next(new HttpSuccess(200, { entries: result }));
165 }, function (error) { 165 }, function (error) {