fix normalize path

pull/1/head
yann300 7 years ago
parent 32e354ef3f
commit ef50e98c25
  1. 3
      src/app/files/file-explorer.js

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

Loading…
Cancel
Save