fix (plg_backend_local): filter out symlink

This commit is contained in:
MickaelK
2026-08-26 21:45:41 +10:00
parent 29058ea681
commit 6fac46eb70
+7 -1
View File
@@ -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) {