Fixed some issue around path normalization.

This commit is contained in:
kay.one 2011-12-10 11:22:47 -08:00
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);
}
}
}