mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
use DirOptions.ShowHidden in DirListRich
This commit is contained in:
parent
8b2bdd0dc2
commit
33344283b8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user