diff options
author | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 17:34:57 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 17:34:57 +0100 |
commit | e90afd41771b60816d333617183440b2f2739043 (patch) | |
tree | 7a64a6aa199b022862012f72970a25500ab0d915 /src | |
parent | 470f83e72c9ca1148d0a20eea74ff7194cf3a348 (diff) | |
download | Surfer-e90afd41771b60816d333617183440b2f2739043.tar.gz Surfer-e90afd41771b60816d333617183440b2f2739043.tar.zst Surfer-e90afd41771b60816d333617183440b2f2739043.zip |
Use the force
Diffstat (limited to 'src')
-rw-r--r-- | src/files.js | 2 |
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) { |