mirror of
https://github.com/kataras/iris.git
synced 2026-01-23 11:56:00 +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 {
|
for _, d := range dirs {
|
||||||
|
if !dirOptions.ShowHidden && IsHidden(d) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
name := toBaseName(d.Name())
|
name := toBaseName(d.Name())
|
||||||
|
|
||||||
upath := path.Join(ctx.Request().RequestURI, name)
|
upath := path.Join(ctx.Request().RequestURI, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user