Get a list of the absolute path in the file location. This plugin reading all the files in a folder recursively.
$ npm install node-filelist --save
For example. If you want to read the image file.
var fl = ;var files = "/path-you-want-to-read" ;var option = "ext" : "jpeg|jpg|png|gif" ;fl;
It will be in the following such a results.
|ext||Extension of the file you want to read.||all file|
|isStats||If you want stats in results.||
|path||The path of the file that you have read .|
|stats||The stats of the file that you have read .|