updated nuget

This commit is contained in:
Luke Pulverenti
2013-10-01 17:18:31 -04:00
parent c7fac2d702
commit 59acec8143
4 changed files with 11 additions and 5 deletions

View File

@@ -105,6 +105,12 @@ namespace MediaBrowser.Api
throw new ArgumentNullException("Path");
}
// If it's not a drive trim trailing slashes.
if (!path.EndsWith(":\\"))
{
path = path.TrimEnd('\\');
}
if (path.StartsWith(NetworkPrefix, StringComparison.OrdinalIgnoreCase) && path.LastIndexOf('\\') == 1)
{
return ToOptimizedResult(GetNetworkShares(path).OrderBy(i => i.Path).ToList());