Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/filesystem.go')
-rw-r--r--source/filesystem.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index 446d8c06d..e6e354e99 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -158,14 +158,14 @@ func (f *Filesystem) avoid(filePath string) bool {
return false
}
-func (s SourceSpec) isNonProcessablePath(filePath string) bool {
+func (sp SourceSpec) isNonProcessablePath(filePath string) bool {
base := filepath.Base(filePath)
if strings.HasPrefix(base, ".") ||
strings.HasPrefix(base, "#") ||
strings.HasSuffix(base, "~") {
return true
}
- ignoreFiles := cast.ToStringSlice(s.Cfg.Get("ignoreFiles"))
+ ignoreFiles := cast.ToStringSlice(sp.Cfg.Get("ignoreFiles"))
if len(ignoreFiles) > 0 {
for _, ignorePattern := range ignoreFiles {
match, err := regexp.MatchString(ignorePattern, filePath)