Last active
February 12, 2021 00:31
-
-
Save AlaeddineMessadi/e06446bb8a9737c730567f21875f64c8 to your computer and use it in GitHub Desktop.
javascript, node : List all files in specific folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
fs.readdirSync('.').forEach(file => { | |
console.log(file); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment