Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node get all files in folder

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