From 430b6247de717bc674f47ed455b8d68c0f777cf7 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 6 Dec 2019 11:33:53 +0800 Subject: [PATCH] fix open with tree files --- elfinder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elfinder.go b/elfinder.go index 8f83a37..f6976a5 100644 --- a/elfinder.go +++ b/elfinder.go @@ -152,6 +152,9 @@ func (elf *ElFinderConnector) open() { for _, item := range elf.Volumes { ret.Files = append(ret.Files, item.RootFileDir()) } + for _, item := range v.Parents(path,0){ + ret.Files = append(ret.Files, item) + } } elf.res = &ret }