Project Name
asyncdirectory
Installation
npm install asyncdirectory
Usage
---You cant use it via (npm install asyncdirectory),
oversheet .js must exist under the same directory of asyncdirectory
=> (asyncdirectory\node_modules\oversheet\)
---asyncdirectory has a function getList(path,[,extensions],callback);
where extensions array is an array of files extensions.
example:
var asyncDirectory=require("asyncdirectory");
asyncDirectory.getList("c:\\randomFolder",["mp4","mp3","doc"],function(list){
console.log("Paths are "+list);
}
);
//this call will get you all paths to files in c:\\randomFolder directory and sub directories
that have any of mp4,mp3,doc extensions.