From c6c639293d368215a9d1d71b4430e7b804b8e6d2 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 27 Feb 2018 13:26:36 +0100 Subject: [PATCH] fix normalize path --- src/app/files/file-explorer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 82ec08c670..fb9f468f24 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -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 }