Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get file name in directory node js

const path = require('path')

//...

//inside the `for` loop
const stat = fs.lstatSync(path.join(dir, file))
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #file #directory #node #js
ADD COMMENT
Topic
Name
7+9 =