From 6fac46eb70b3cd103b4ed46f2edf604e551b28d8 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Wed, 26 Aug 2026 21:45:41 +1000 Subject: [PATCH] fix (plg_backend_local): filter out symlink --- server/plugin/plg_backend_local/index.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/plugin/plg_backend_local/index.go b/server/plugin/plg_backend_local/index.go index 138fa0ab..3b63b535 100644 --- a/server/plugin/plg_backend_local/index.go +++ b/server/plugin/plg_backend_local/index.go @@ -77,7 +77,13 @@ func (this Local) Ls(path string) ([]os.FileInfo, error) { f.Close() return nil, err } - return files, f.Close() + out := files[:0] + for _, file := range files { + if file.Mode().IsRegular() || file.IsDir() { + out = append(out, file) + } + } + return out, f.Close() } func (this Local) Stat(path string) (os.FileInfo, error) {