Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to read all files in a folder in node js

fs.readdir('./', (err, files) => {
        files.forEach(file => {
        //   console.log(file);
        }});
 
PREVIOUS NEXT
Tagged: #read #files #folder #node #js
ADD COMMENT
Topic
Name
8+5 =