file-tree
A more flexible, asynchronous version of file-size-tree.
Installation
npm install file-tree
Usage
require('file-tree')(files, mapper, callback)
Takes an array of files
.
mapper(filename, next)
should pass an object to the the callback
with the metadata you want to associate with the file.
callback(err, tree)
is called when everything's done.
var tree =var fs =