mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
remove unseeded file system call
This commit is contained in:
parent
821a3d29a2
commit
ca0583bcbe
2 changed files with 7 additions and 7 deletions
|
@ -105,6 +105,12 @@ namespace MediaBrowser.Controller.Entities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>true</c> if this instance is owned item; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if this instance is owned item; otherwise, <c>false</c>.</value>
|
||||||
bool IsOwnedItem { get; }
|
bool IsOwnedItem { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the containing folder path.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The containing folder path.</value>
|
||||||
|
string ContainingFolderPath { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class HasImagesExtensions
|
public static class HasImagesExtensions
|
||||||
|
|
|
@ -72,13 +72,7 @@ namespace MediaBrowser.Providers.All
|
||||||
return new List<string>();
|
return new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
var path = item.Path;
|
var path = item.ContainingFolderPath;
|
||||||
var fileInfo = _fileSystem.GetFileSystemInfo(path) as DirectoryInfo;
|
|
||||||
|
|
||||||
if (fileInfo == null)
|
|
||||||
{
|
|
||||||
path = Path.GetDirectoryName(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (includeDirectories)
|
if (includeDirectories)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue