mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Speedier unmapped folders lookup.
This commit is contained in:
parent
f9437baf80
commit
0c2a1c60b1
5 changed files with 41 additions and 18 deletions
|
@ -35,11 +35,12 @@ namespace NzbDrone.Common
|
|||
return info.FullName.TrimEnd('/').Trim('\\', ' ');
|
||||
}
|
||||
|
||||
|
||||
public static bool PathEquals(this string firstPath, string secondPath)
|
||||
{
|
||||
Ensure.That(() => firstPath).IsValidPath();
|
||||
Ensure.That(() => secondPath).IsValidPath();
|
||||
if (OsInfo.IsLinux)
|
||||
{
|
||||
return String.Equals(firstPath.CleanFilePath(), secondPath.CleanFilePath());
|
||||
}
|
||||
|
||||
return String.Equals(firstPath.CleanFilePath(), secondPath.CleanFilePath(), StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue