commit
667b646901
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ exports.rmdirSyncRecursive = function(path, failSilent) {
|
||||||
|
|
||||||
/* Loop through and delete everything in the sub-tree after checking it */
|
/* Loop through and delete everything in the sub-tree after checking it */
|
||||||
for(var i = 0; i < files.length; i++) {
|
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
|
if(currFile.isDirectory()) // Recursive function back to the beginning
|
||||||
exports.rmdirSyncRecursive(path + "/" + files[i]);
|
exports.rmdirSyncRecursive(path + "/" + files[i]);
|
||||||
|
|
|
||||||
Reference in a new issue