aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/All/LocalImageProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-06 00:17:00 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-06 00:17:00 -0500
commitca0583bcbee3b2a66dfa2a25c63fb62081fe1239 (patch)
treefb804ca63a140902dc13a7999b64dec88aafdf4f /MediaBrowser.Providers/All/LocalImageProvider.cs
parent821a3d29a228feaa3ac4d36c58ee478a405e0481 (diff)
remove unseeded file system call
Diffstat (limited to 'MediaBrowser.Providers/All/LocalImageProvider.cs')
-rw-r--r--MediaBrowser.Providers/All/LocalImageProvider.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/MediaBrowser.Providers/All/LocalImageProvider.cs b/MediaBrowser.Providers/All/LocalImageProvider.cs
index daae58ff6..5883781f9 100644
--- a/MediaBrowser.Providers/All/LocalImageProvider.cs
+++ b/MediaBrowser.Providers/All/LocalImageProvider.cs
@@ -72,13 +72,7 @@ namespace MediaBrowser.Providers.All
return 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)
{