Commit 71eeccb4 authored by yann300's avatar yann300

add exists

parent 4419de25
...@@ -40,6 +40,11 @@ module.exports = { ...@@ -40,6 +40,11 @@ module.exports = {
}) })
}, },
exists: function (args, cb) {
var path = utils.absolutePath(args.path, this.sharedFolder)
cb(null, fs.existsSync(path))
},
set: function (args, cb) { set: function (args, cb) {
var path = utils.absolutePath(args.path, this.sharedFolder) var path = utils.absolutePath(args.path, this.sharedFolder)
if (!isRealPath(path, cb)) return if (!isRealPath(path, cb)) return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment