Answers for "fs.readdir example"

4

fs.readdir example

const fs = require("fs")
fs.readdir("./myfolder", (err, data) => {
	if(err) throw err
  	console.log(data)
})
Posted by: Guest on November-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language