use DirOptions.ShowHidden in DirListRich

This commit is contained in:
tuhao 2021-01-29 01:10:40 +08:00
parent 8b2bdd0dc2
commit 33344283b8

View File

@ -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)