فهرست منبع

fixed delete recursive folder

Simon Van Mierlo 8 سال پیش
والد
کامیت
11875837de
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);
            }