]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/which/node_modules/isexe/access.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / which / 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 }