Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Created February 6, 2010 06:20
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 ThisIsMissEm/4d3900a86a3cac15a843 to your computer and use it in GitHub Desktop.
Save ThisIsMissEm/4d3900a86a3cac15a843 to your computer and use it in GitHub Desktop.
var files = ["a.js", "b.js"];
var exists = {};
for(var file in files){
if(files.hasOwnProperty(file)){
posix.stat(file).addCallback(function(){
exists[file] = true;
}).addErrback(function(){
exists[file] = false;
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment