Commit 1fee02fd authored by yann300's avatar yann300

make exists async

parent 835abc48
...@@ -21,10 +21,10 @@ class BasicReadOnlyExplorer { ...@@ -21,10 +21,10 @@ class BasicReadOnlyExplorer {
this.files = {} this.files = {}
} }
exists (path) { exists (path, cb) {
if (!this.files) return false if (!this.files) return cb(null, false)
var unprefixedPath = this.removePrefix(path) var unprefixedPath = this.removePrefix(path)
return this.files[unprefixedPath] !== undefined cb(null, this.files[unprefixedPath] !== undefined)
} }
get (path, cb) { get (path, cb) {
......
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