Explorar o código

fixed delete recursive folder

Simon Van Mierlo %!s(int64=8) %!d(string=hai) anos
pai
achega
11875837de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ___fs++.js

+ 1 - 1
___fs++.js

@@ -177,7 +177,7 @@ exports.deleteFolderRecursive = function(path) {
        _fs.readdirSync(path).forEach(function(file,index){
            var curPath = path + "/" + file;
            if(_fs.lstatSync(curPath).isDirectory()) { // recurse
-               deleteFolderRecursive(curPath);
+               exports.deleteFolderRecursive(curPath);
            } else { // delete file
                _fs.unlinkSync(curPath);
            }