Skip to content

Instantly share code, notes, and snippets.

@thehydroimpulse
Created January 18, 2013 18:00
Show Gist options
  • Select an option

  • Save thehydroimpulse/4566647 to your computer and use it in GitHub Desktop.

Select an option

Save thehydroimpulse/4566647 to your computer and use it in GitHub Desktop.
this._paths.forEach(function(p){
fs.readdir(p, function(error, dir){
if (error) throw Error(error);
dir.forEach(function(_dir){
if (_dir.match("tower-packages")) return;
// Check if `package.js` exists:
fs.exists(path.join(p, _dir, 'package.js'), function(exists){
if (exists) {
}
});
});
});
});
@thehydroimpulse
Copy link
Copy Markdown
Author

takes 16 - 32ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment