fs.readdir(__dirname,index); function index(err,data){ for (i in data){ if(fs.statSync(data[i]).isDirectory()){ j.folders.push(path.resolve(data[i])); fs.readdir(data[i],index); } else{ j.files.push(path.resolve(data[i])); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)