fixes handling of hidden directories

This commit is contained in:
Philipp Häfelfinger 2020-06-02 21:04:01 +02:00
parent 7c2d6f302b
commit 425f8870e3

View File

@ -62,6 +62,9 @@ func ScanLocalFileStructure(path string, extensions []string, ignoreDirs []strin
if strings.HasPrefix(info.Name(), ".") { if strings.HasPrefix(info.Name(), ".") {
logrus.Tracef("Skipping hidden file or directory %s", path) logrus.Tracef("Skipping hidden file or directory %s", path)
if info.IsDir() {
return filepath.SkipDir
}
return nil return nil
} }