diff options
Diffstat (limited to 'source/filesystem.go')
-rw-r--r-- | source/filesystem.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/filesystem.go b/source/filesystem.go index abec6ca6e..3a176d7ba 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -87,12 +87,12 @@ func (f *Filesystem) captureFiles() { } if fi.IsDir() { - if f.avoid(filePath) { + if f.avoid(filePath) || isNonProcessablePath(filePath) { return filepath.SkipDir } return nil } else { - if ignoreDotFile(filePath) { + if isNonProcessablePath(filePath) { return nil } data, err := ioutil.ReadFile(filePath) @@ -116,7 +116,7 @@ func (f *Filesystem) avoid(filePath string) bool { return false } -func ignoreDotFile(filePath string) bool { +func isNonProcessablePath(filePath string) bool { base := filepath.Base(filePath) if base[0] == '.' { return true |