0.0.2 • Published 11 years ago

walk-fs v0.0.2

Weekly downloads
236
License
-
Repository
github
Last release
11 years ago

Walk a directory

API

walk(dir, [options], iterator, callback);

Parameters:

  • dir: absolute directory
  • options: optional, properties: { recursive: [boolean] }
  • iterator: function(path, stats), where stats is an instance of fs.Stats
  • callback: function(err)

Return false from the iterator to stop walking.

Example

var walk = require('walk-fs');

walk(path.join(__dirname), function(path, stats) {
  console.log(path, stats);

}, function(err) {
  assert(!err);
});

Install

npm install walk-fs