hugofs: Add includeFiles and excludeFiles to mount configuration

Fixes #9042
This commit is contained in:
Bjørn Erik Pedersen 2021-10-16 16:24:49 +02:00
parent 94a5bac5b2
commit 471ed91c60
15 changed files with 797 additions and 133 deletions

View file

@ -74,7 +74,7 @@ func NewSourceSpec(ps *helpers.PathSpec, inclusionFilter *glob.FilenameFilter, f
}
}
shouldInclude := func(filename string) bool {
if !inclusionFilter.Match(filename) {
if !inclusionFilter.Match(filename, false) {
return false
}
for _, r := range regexps {