fs-walk.js/test-walk.js

16 lines
306 B
JavaScript
Raw Permalink Normal View History

2012-06-06 19:19:44 +00:00
/*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();
});
}());