mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-02-06 11:50:56 +02:00
fixed linux path conversion.
This commit is contained in:
parent
05370518c5
commit
fc9937bb7d
@ -12,6 +12,7 @@ namespace NzbDrone.Test.Common
|
|||||||
if (path.Length > 2 && path[1] == ':')
|
if (path.Length > 2 && path[1] == ':')
|
||||||
{
|
{
|
||||||
path = path.Replace(':', Path.DirectorySeparatorChar);
|
path = path.Replace(':', Path.DirectorySeparatorChar);
|
||||||
|
path = Path.DirectorySeparatorChar + path;
|
||||||
}
|
}
|
||||||
path = path.Replace("\\", Path.DirectorySeparatorChar.ToString());
|
path = path.Replace("\\", Path.DirectorySeparatorChar.ToString());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user