1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 20:21:55 +00:00
musix-oss/node_modules/walkdir/test/comparison/lsr.js

19 lines
364 B
JavaScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
var lsr = require('ls-r');
lsr(process.argv[2]||'./',{maxDepth:500000,recursive:true},function(err,origPath,args){
if(err) {
console.log('eww an error! ',err);
return;
}
//console.log('hit');
var c = 0;
args.forEach(function(stat){
if(stat.isFile()){
console.log(stat.path);
c++;
}
});
console.log('found '+args.length+" regular files");
});