make browserfiles. exists async

pull/1/head
yann300 7 years ago
parent 1fee02fd0a
commit 99e127d3f4
  1. 6
      src/app/files/browser-files.js

@ -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) {

Loading…
Cancel
Save