Update MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs

Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
This commit is contained in:
Claus Vium 2021-12-14 22:57:01 +01:00 committed by GitHub
parent 9e665ff520
commit e575d815cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ namespace MediaBrowser.LocalMetadata.Images
return Enumerable.Empty<FileSystemMetadata>();
}
return directoryService.GetFiles(path)
return directoryService.GetFileSystemEntries(path)
.Where(i =>
(includeDirectories && i.IsDirectory)
|| Array.FindIndex(BaseItem.SupportedImageExtensions, ext => string.Equals(ext, i.Extension, StringComparison.OrdinalIgnoreCase)) != -1)