the pathname of a readable directory
an object that defines some of the properties
function that is called on each file
defines a second callback, that is called, when all files have been processed. It takes no arguments.
Default:
var dive = require('dive');
dive(process.cwd(), function(err, file) {
});```
All files and a callback in the end:
var dive = require('dive');
dive(process.cwd(), { all: true }, function(err, file, stat) { if (err) throw err; console.log(file); }, function() { console.log('complete'); });```
Directories only:
var dive = require('dive');
dive(process.cwd(), { directories: true, files: false }, function(err, dir) {
if (err) throw err;
console.log(dir);
});```
Generated using TypeDoc
Recursively walk (“dive”) a directory tree.