fs-walk.js/test-walk.js

16 lines
306 B
JavaScript

/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true*/
(function () {
"use strict";
var walk = require('./lib/walk').walk
, walker
;
walker = walk('./');
walker.on('file', function (root, stat, next) {
console.log(root, stat.name);
next();
});
}());