Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how create array with names of files in folder nodejs

var fs = require('fs');   
var fileNames = fs.readdirSync(dirPath);
//Do something with fileNames here
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #array #names #files #folder #nodejs
ADD COMMENT
Topic
Name
3+8 =