node download all files in directory code example
Example: node get all files in folder
fs.readdir('./', (err, files) => {
files.forEach(file => {
// console.log(file);
})});
fs.readdir('./', (err, files) => {
files.forEach(file => {
// console.log(file);
})});