updated nuget

This commit is contained in:
Luke Pulverenti
2014-05-17 14:37:40 -04:00
parent c8e4889ac7
commit 715119b525
21 changed files with 134 additions and 23 deletions

View File

@@ -351,18 +351,21 @@ namespace MediaBrowser.Common.Implementations.IO
throw new ArgumentNullException("to");
}
path = path.Replace(from, to, StringComparison.OrdinalIgnoreCase);
var newPath = path.Replace(from, to, StringComparison.OrdinalIgnoreCase);
if (to.IndexOf('/') != -1)
if (!string.Equals(newPath, path))
{
path = path.Replace('\\', '/');
}
else
{
path = path.Replace('/', '\\');
if (to.IndexOf('/') != -1)
{
newPath = path.Replace('\\', '/');
}
else
{
newPath = path.Replace('/', '\\');
}
}
return path;
return newPath;
}
}
}