Last active
November 7, 2017 21:37
-
-
Save EliCDavis/5fb02142e6286e2571d99dbdb06ad5e8 to your computer and use it in GitHub Desktop.
This file contains 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
var fs = require('fs'); | |
var path = <SED ME DADDY>; | |
fs.readdir(path, function(err, items) { | |
var contents = ""; | |
for (var i=0; i<items.length; i++) { | |
contents += ","+items[i]; | |
} | |
console.log(contents); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment