1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

Update dir api (#2869)

* update dir api

return dict format response

* [listDir] modified listDir after api updated
This commit is contained in:
lian
2019-01-22 18:27:51 +08:00
committed by Daniel Pan
parent 35c1663dc2
commit 0fb958d9bd
8 changed files with 89 additions and 85 deletions

View File

@@ -22,7 +22,7 @@ class EditorUtilities {
listRepoDir() {
return seafileAPI.listDir(repoID, '/',{recursive: true}).then(items => {
const files = items.data.map(item => {
const files = items.data.dirent_list.map(item => {
return {
name: item.name,
type: item.type === 'dir' ? 'dir' : 'file',