at-at
v1.1.0
Published
An AT-AT walker to walk all over your (filesystem) planet.
Downloads
12
Maintainers
Readme
AT-AT
An AT-AT walker to walk all over your (filesystem) planet.
Usage
Use at-at to traverse directories in your filesystem.
var walker = require('at-at');
walker.walk('./', function(files) {
// files is an array of filenames (including the paths).
files.forEach(function(file) {
console.log(file);
});
});
The callback passed to walker.walk() gets called after all files have been
traversed asynchronously. The given example is similar to running the shell
command find
.
TODO
- Traverse with regex filters.
- Traverse by type (directory, file, etc).