From 9aab4326c5916ec9ea3bcaaf51ef82f73bf82e1d Mon Sep 17 00:00:00 2001 From: jrichardeau Date: Fri, 4 Dec 2015 15:41:25 +0100 Subject: [PATCH] Removing files/folders synchronously, otherwise doesnt work on local network --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9c43772..98eb89e 100644 --- a/index.js +++ b/index.js @@ -145,7 +145,7 @@ function copy (source, target, notify) { function destroy (fileordir, notify) { notify("remove", fileordir); try { - fs.remove(fileordir); + fs.removeSync(fileordir); return true; } catch (e) { notify("error", e);