diff --git a/core/router/fs.go b/core/router/fs.go index 02715af7..1192bb3c 100644 --- a/core/router/fs.go +++ b/core/router/fs.go @@ -661,6 +661,10 @@ func DirListRich(opts ...DirListRichOptions) DirListFunc { } for _, d := range dirs { + if !dirOptions.ShowHidden && IsHidden(d) { + continue + } + name := toBaseName(d.Name()) upath := path.Join(ctx.Request().RequestURI, name)