more linux fixes

This commit is contained in:
kay.one
2013-07-25 22:55:19 -07:00
parent c2b4eadc47
commit 67661c6893
3 changed files with 26 additions and 12 deletions

View File

@@ -11,7 +11,8 @@ namespace NzbDrone.Test.Common
{
if (path.Length > 2 && path[1] == ':')
{
path = path.Replace(':', Path.DirectorySeparatorChar);
path = path.Replace(":", "");
path = Path.DirectorySeparatorChar + path;
}
path = path.Replace("\\", Path.DirectorySeparatorChar.ToString());
}