Code Review
/
vnfsdk
/
refrepo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug:Fix file validation issue
[vnfsdk/refrepo.git]
/
vnfmarket
/
src
/
main
/
webapp
/
vnfmarket
/
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
}