fixed missing directory handling
This commit is contained in:
parent
930d27bff7
commit
665f0e18e1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user