From 1f49d10f18d98142dfcf2494576f455b315c5675 Mon Sep 17 00:00:00 2001 From: Zeus Date: Wed, 28 Sep 2016 16:16:29 -0700 Subject: [PATCH] Disable rimraf globbing since its not supported anywhere else within fs-extra Add missing var declaration --- lib/remove/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/remove/index.js b/lib/remove/index.js index 925de677..c01644de 100644 --- a/lib/remove/index.js +++ b/lib/remove/index.js @@ -1,11 +1,12 @@ var rimraf = require('rimraf') function removeSync (dir) { - return rimraf.sync(dir) + return rimraf.sync(dir, {disableGlob: true}) } function remove (dir, callback) { - return callback ? rimraf(dir, callback) : rimraf(dir, function () {}) + var options = {disableGlob: true} + return callback ? rimraf(dir, options, callback) : rimraf(dir, options, function () {}) } module.exports = {