Answers for "get all files in directory and subdirectories nodejs"

1

javascript get list of files in directory

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

get all from dir node

const getAllFromDir = source =>
      fs.readdirSync(source).map(name => path.join(source, name));
      console.log(getDirectories("C:/"));
Posted by: Guest on October-06-2020

Code answers related to "get all files in directory and subdirectories nodejs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language