README

Walk Tree
Simple package to get the files path of a directory in an array
Usage
You can use it with a simple constant:
const walkTree = require("files-tree");
const files = walkTree.get("./local/");
console.log(files);
Or also use with callback function:
const walkTree = require("files-tree");
walkTree.get("./local/", (files) => {
console.log(files);
})
Result
The result of the execution returns an array with the path of all files
[
'./local/notes.txt',
'./local/utilites/codes/bar.js',
'./local/utilites/codes/baz.js',
'./local/utilites/codes/foo.js',
'./local/utilites/images/bird.png',
'./local/utilites/images/cat.png',
'./local/utilites/videos/bird-meme.mp4'
]
Node version
The version most compatible with our package is node 4.2 or higher!
Author
Marcos Dionisio |
---|