From 7edb49884df80c5e2de8b535212696e8c8cb9cee Mon Sep 17 00:00:00 2001 From: Mark Ledford Date: Mon, 16 Jan 2012 16:37:27 -0500 Subject: [PATCH] Update lib/wrench.js --- lib/wrench.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wrench.js b/lib/wrench.js index c54e63f..da400b9 100644 --- a/lib/wrench.js +++ b/lib/wrench.js @@ -74,7 +74,7 @@ exports.rmdirSyncRecursive = function(path, failSilent) { /* Loop through and delete everything in the sub-tree after checking it */ for(var i = 0; i < files.length; i++) { - var currFile = fs.statSync(path + "/" + files[i]); + var currFile = fs.lstatSync(path + "/" + files[i]); if(currFile.isDirectory()) // Recursive function back to the beginning exports.rmdirSyncRecursive(path + "/" + files[i]);