reduce memory usage from file system info

This commit is contained in:
Luke Pulverenti
2013-06-19 22:21:50 -04:00
parent 39e3092c52
commit 830e5c01f1
3 changed files with 14 additions and 10 deletions

View File

@@ -112,7 +112,7 @@ namespace MediaBrowser.Controller.Library
return false;
}
var parentDir = System.IO.Path.GetDirectoryName(FileInfo.FullName) ?? string.Empty;
var parentDir = System.IO.Path.GetDirectoryName(Path) ?? string.Empty;
return (parentDir.Length > _appPaths.RootFolderPath.Length
&& parentDir.StartsWith(_appPaths.RootFolderPath, StringComparison.OrdinalIgnoreCase));