asyncdirectory
v6.0.4
Published
Deep asynchronous search (in current directory and sub directories) for files with some extenstions in a particular path
Downloads
15
Readme
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.