mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +00:00
updated nuget
This commit is contained in:
parent
c8e4889ac7
commit
715119b525
21 changed files with 134 additions and 23 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue