diff --git a/internal/photoprism/index.go b/internal/photoprism/index.go index eea39a813..6c0b09178 100644 --- a/internal/photoprism/index.go +++ b/internal/photoprism/index.go @@ -101,7 +101,13 @@ func (ind *Index) Start(options IndexOptions) map[string]bool { return nil } - if fileInfo.IsDir() || strings.HasPrefix(filepath.Base(fileName), ".") { + hidden := strings.HasPrefix(filepath.Base(fileName), ".") + + if fileInfo.IsDir() && hidden { + return filepath.SkipDir + } + + if fileInfo.IsDir() || hidden { return nil }