wallet-core/node_modules/walkdir/test/comparison/findittest.js
2017-05-03 15:35:00 +02:00

15 lines
259 B
JavaScript

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');
});