I hate to have to write a custom exists promise every time I need to know if a file exists, so I came up with this. Thoughts?
var Promise = require("bluebird")
var fs = Promise.promisifyAll(require("fs"))
function fsExists(_path){
return fs.lstatAsync(_path)
.then(function(){ return true })
.catch(function(){ return false })
}
module.exports = fsExists