fixed missing directory handling

This commit is contained in:
Philipp Häfelfinger 2019-03-01 21:51:30 +01:00
parent 930d27bff7
commit 665f0e18e1
1 changed files with 1 additions and 1 deletions

View File

@ -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
}