how to get all files in a folder javascript] 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);
})});