feat(local): add show hidden config (#2087)

This commit is contained in:
Jmper
2022-10-23 14:53:07 +08:00
committed by GitHub
parent 02df3759df
commit da7e17aa38
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ func (d *Local) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([
}
var files []model.Obj
for _, f := range rawFiles {
if strings.HasPrefix(f.Name(), ".") {
if !d.ShowHidden && strings.HasPrefix(f.Name(), ".") {
continue
}
thumb := ""