1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-24 11:13:18 +00:00
musix-oss/node_modules/walkdir/test/comparison/findittest.js

15 lines
259 B
JavaScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
var findit = require('findit');
var find = findit.find(process.argv[2]||'./');
var count = 0;
find.on('file',function(path,stat){
count++;
process.stdout.write(path+"\n");
});
find.on('end',function(){
console.log('found '+count+' regular files');
});