mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 21:15:56 +00:00
use DirOptions.ShowHidden in DirListRich
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user