Commit ef50e98c authored by yann300's avatar yann300

fix normalize path

parent 32e354ef
......@@ -173,10 +173,9 @@ function fileExplorer (appAPI, files) {
})
function normalize (path, filesList) {
var prefix = path.split('/')[0]
var newList = {}
Object.keys(filesList).forEach(key => {
newList[prefix + '/' + key] = filesList[key].isDirectory ? {} : { '/content': true }
newList[path + '/' + key] = filesList[key].isDirectory ? {} : { '/content': true }
})
return newList
}
......
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