1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

fixed linux path conversion.

This commit is contained in:
kay.one 2013-07-25 22:05:37 -07:00
parent 05370518c5
commit fc9937bb7d

View File

@ -12,6 +12,7 @@ public static string AsOsAgnostic(this string path)
if (path.Length > 2 && path[1] == ':')
{
path = path.Replace(':', Path.DirectorySeparatorChar);
path = Path.DirectorySeparatorChar + path;
}
path = path.Replace("\\", Path.DirectorySeparatorChar.ToString());
}