Commit 99e127d3 authored by yann300's avatar yann300

make browserfiles. exists async

parent 1fee02fd
......@@ -8,12 +8,12 @@ function Files (storage) {
var readonly = {}
this.type = 'browser'
this.exists = function (path) {
this.exists = function (path, cb) {
var unprefixedpath = this.removePrefix(path)
// NOTE: ignore the config file
if (path === '.remix.config') return false
if (path === '.remix.config') return cb(null, false)
return this.isReadOnly(unprefixedpath) || storage.exists(unprefixedpath)
return cb(null, this.isReadOnly(unprefixedpath) || storage.exists(unprefixedpath))
}
this.init = function (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