|
|
@ -118,7 +118,6 @@ function Files (storage) { |
|
|
|
this.resolveDirectory = function (path, callback) { |
|
|
|
this.resolveDirectory = function (path, callback) { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|
// path = '' + (path || '')
|
|
|
|
// path = '' + (path || '')
|
|
|
|
setTimeout(function () { |
|
|
|
|
|
|
|
function hashmapize (obj, path, val) { |
|
|
|
function hashmapize (obj, path, val) { |
|
|
|
var nodes = path.split('/') |
|
|
|
var nodes = path.split('/') |
|
|
|
var i = 0 |
|
|
|
var i = 0 |
|
|
@ -153,7 +152,6 @@ function Files (storage) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
callback(null, tree) |
|
|
|
callback(null, tree) |
|
|
|
}, 0) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.removePrefix = function (path) { |
|
|
|
this.removePrefix = function (path) { |
|
|
|