e67b28bd6f6c6f94d272f44a4eb2568e7b5cd21a
[yaffs-website] / access.js
1 module.exports = isexe
2 isexe.sync = sync
3
4 var fs = require('fs')
5
6 function isexe (path, _, cb) {
7   fs.access(path, fs.X_OK, function (er) {
8     cb(er, !er)
9   })
10 }
11
12 function sync (path, _) {
13   fs.accessSync(path, fs.X_OK)
14   return true
15 }