diff --git a/StabilityMatrix.Core/Services/ImageIndexService.cs b/StabilityMatrix.Core/Services/ImageIndexService.cs index 2e917e63..8543c24f 100644 --- a/StabilityMatrix.Core/Services/ImageIndexService.cs +++ b/StabilityMatrix.Core/Services/ImageIndexService.cs @@ -61,10 +61,11 @@ public class ImageIndexService : IImageIndexService await Task.Run(() => { - var files = imagesDir.Info + var files = imagesDir .EnumerateFiles("*.*", SearchOption.AllDirectories) - .Where(info => LocalImageFile.SupportedImageExtensions.Contains(info.Extension)) - .Select(info => new FilePath(info)); + .Where( + file => LocalImageFile.SupportedImageExtensions.Contains(file.Extension) + ); Parallel.ForEach( files,