Update lib/wrench.js #12

Merged
fishmongr merged 1 commit from patch-1 into master 2012-01-16 13:46:35 -08:00

View file

@ -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]);