optimize FindByPath

This commit is contained in:
Luke Pulverenti
2016-03-01 14:39:46 -05:00
parent 177cc41e3d
commit 076a07a546
7 changed files with 40 additions and 2 deletions

View File

@@ -664,7 +664,7 @@ namespace MediaBrowser.Server.Implementations.IO
while (item == null && !string.IsNullOrEmpty(path))
{
item = LibraryManager.RootFolder.FindByPath(path);
item = LibraryManager.FindByPath(path);
path = Path.GetDirectoryName(path);
}