]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - src/files.js
Use the force
[perso/Immae/Projets/Nodejs/Surfer.git] / src / files.js
index 68dfea308dccd04265379508dd89b271fc9ce5f1..8a4115f896767bc633a41edb3512d9263855fac7 100644 (file)
@@ -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) {