The Free Software Media System - Server Backend & API
remove unseeded file system call
Luke Pulverentica0583bcbee3
diff --git a/MediaBrowser.Controller/Entities/IHasImages.cs b/MediaBrowser.Controller/Entities/IHasImages.csindex 51f25979cb..dd6194bc78 100644--- a/MediaBrowser.Controller/Entities/IHasImages.cs+++ b/MediaBrowser.Controller/Entities/IHasImages.cs@@ -105,6 +105,12 @@ namespace MediaBrowser.Controller.Entities/// </summary>/// <value><c>true</c> if this instance is owned item; otherwise, <c>false</c>.</value>bool IsOwnedItem { get; }++ /// <summary>+ /// Gets the containing folder path.+ /// </summary>+ /// <value>The containing folder path.</value>+ string ContainingFolderPath { get; }}public static class HasImagesExtensionsdiff --git a/MediaBrowser.Providers/All/LocalImageProvider.cs b/MediaBrowser.Providers/All/LocalImageProvider.csindex daae58ff6a..5883781f91 100644--- a/MediaBrowser.Providers/All/LocalImageProvider.cs+++ b/MediaBrowser.Providers/All/LocalImageProvider.cs@@ -72,13 +72,7 @@ namespace MediaBrowser.Providers.Allreturn new List<string>();}- var path = item.Path;- var fileInfo = _fileSystem.GetFileSystemInfo(path) as DirectoryInfo;-- if (fileInfo == null)- {- path = Path.GetDirectoryName(path);- }+ var path = item.ContainingFolderPath;if (includeDirectories){