Fixed some issue around path normalization.

This commit is contained in:
kay.one
2011-12-10 11:22:47 -08:00
parent e269494ff8
commit bfe4de7a08
7 changed files with 32 additions and 10 deletions

View File

@@ -175,5 +175,11 @@ namespace NzbDrone.Common
{
return File.ReadAllText(filePath);
}
public static bool PathEquals(string firstPath, string secondPath)
{
return String.Equals(firstPath.NormalizePath(), secondPath.NormalizePath(), StringComparison.InvariantCultureIgnoreCase);
}
}
}