Skip to content

Instantly share code, notes, and snippets.

@EliCDavis
Last active November 7, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EliCDavis/5fb02142e6286e2571d99dbdb06ad5e8 to your computer and use it in GitHub Desktop.
Save EliCDavis/5fb02142e6286e2571d99dbdb06ad5e8 to your computer and use it in GitHub Desktop.
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