projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[yaffs-website]
/
node_modules
/
isexe
/
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
}