diff --git a/internal/pkg/localFileStructure/filesystemScanner.go b/internal/pkg/localFileStructure/filesystemScanner.go index 8975b15..d4ad9b1 100644 --- a/internal/pkg/localFileStructure/filesystemScanner.go +++ b/internal/pkg/localFileStructure/filesystemScanner.go @@ -27,7 +27,7 @@ func ScanLocalFileStructure(path string) (map[string]*FilesystemNode, error) { } extension := strings.ToLower(filepath.Ext(path)) - if extension != ".jpg" && extension != ".png" { + if extension != ".jpg" && extension != ".png" && !info.IsDir() { return nil }