Skip to content

Instantly share code, notes, and snippets.

@bitbonsai
Forked from nobuh/readdir.js
Created July 5, 2013 13:03
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 bitbonsai/5934401 to your computer and use it in GitHub Desktop.
Save bitbonsai/5934401 to your computer and use it in GitHub Desktop.
var fs = require('fs');
fs.readdir( process.argv[2], function (err, files) {
if (!err)
console.log(files);
else
throw err;
});
console.log("Fired callback.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment