logo
Search
showing results for - "how create array with names of files in folder nodejs"
Victoria
29 Mar 2017
1var fs = require('fs');   
2var fileNames = fs.readdirSync(dirPath);
3//Do something with fileNames here
4
source
similar questions
nodejs read file to arrayget lines as list from file node jsnode list files in directoryget list of all files in a directory in node jshow to get file tree of specific folder in node jsread directory in node jshow to scan a folder for documents with javascriptnodejs put array in filenode get all files in foldernode js name of filejavascript get list of files in directoryhow to get file name in directory node jsfs renaming filesfs readdir examplenode js get files in dirnodejs get all folders in directorynodejs readdirget file name nodejsnodejs dirnamehow to read all files in a folder in node jshow to create a folder in node jshow to create a folder using fs in node js
queries leading to this page
store all the file names in a folder to a array nodejshow to make an array of files in a folder in node jshow create array with names of files in folder nodejs create array with names of files in folder nodejsjavascript get files in folderhow to make an array of files in a folder in node jshow create array with names of files in folder nodejs
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue