Skip to content

Instantly share code, notes, and snippets.

@thehydroimpulse
Created January 19, 2013 03:41
Show Gist options
  • Select an option

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

Select an option

Save thehydroimpulse/4570642 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) {
}
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment