From 665f0e18e1df79ed0ab178631782c68be15fef8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Fri, 1 Mar 2019 21:51:30 +0100 Subject: [PATCH] fixed missing directory handling --- internal/pkg/localFileStructure/filesystemScanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }