fix path substitution

This commit is contained in:
Luke Pulverenti 2014-06-01 19:20:30 -04:00
parent 37683565e7
commit 36648d2708

View File

@ -357,11 +357,11 @@ namespace MediaBrowser.Common.Implementations.IO
{ {
if (to.IndexOf('/') != -1) if (to.IndexOf('/') != -1)
{ {
newPath = path.Replace('\\', '/'); newPath = newPath.Replace('\\', '/');
} }
else else
{ {
newPath = path.Replace('/', '\\'); newPath = newPath.Replace('/', '\\');
} }
} }