Answers for "javscript get all files in folder"

6

node get all files in folder

fs.readdir('./', (err, files) => {
    files.forEach(file => {
    //   console.log(file);
})});
Posted by: Guest on March-15-2021
1

javascript get list of files in directory

var fs = require('fs');
var files = fs.readdirSync('/downloads');
Posted by: Guest on December-08-2020

Code answers related to "javscript get all files in folder"

Code answers related to "Javascript"

Browse Popular Code Answers by Language