Skip to content

Instantly share code, notes, and snippets.

@gquental
Created August 30, 2012 01:02
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 gquental/3521291 to your computer and use it in GitHub Desktop.
Save gquental/3521291 to your computer and use it in GitHub Desktop.
CW35 Hack Thursday - NodeJS
var fs = require('fs');
var folders = [];
fs.readdir('pasta', function(err, data) {
folders = data;
console.log('------------------');
console.log('dentro do callback');
console.log(folders);
});
console.log('------------------');
console.log('fora do callback');
console.log(folders);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment