diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-09-22 09:06:34 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-22 09:06:34 -0600 |
| commit | 7958a2fd15c756f77c5f8629f2c193f10fd29881 (patch) | |
| tree | b77bc5c72bdcbccb94e39546473af74d893eee62 /Emby.Server.Implementations/IO/ManagedFileSystem.cs | |
| parent | 3a2799e61b3aa1fcda0d06531d455944e78c581c (diff) | |
| parent | b8f42573c42b63937433ef12e5948275192acde4 (diff) | |
Merge pull request #10218 from Bond-009/librarymonitor
Diffstat (limited to 'Emby.Server.Implementations/IO/ManagedFileSystem.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/ManagedFileSystem.cs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs index 0ba4a488b..3aa5233ed 100644 --- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs +++ b/Emby.Server.Implementations/IO/ManagedFileSystem.cs @@ -486,24 +486,10 @@ namespace Emby.Server.Implementations.IO } /// <inheritdoc /> - public virtual string NormalizePath(string path) - { - ArgumentException.ThrowIfNullOrEmpty(path); - - if (path.EndsWith(":\\", StringComparison.OrdinalIgnoreCase)) - { - return path; - } - - return Path.TrimEndingDirectorySeparator(path); - } - - /// <inheritdoc /> public virtual bool AreEqual(string path1, string path2) { - return string.Equals( - NormalizePath(path1), - NormalizePath(path2), + return Path.TrimEndingDirectorySeparator(path1).Equals( + Path.TrimEndingDirectorySeparator(path2), _isEnvironmentCaseInsensitive ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); } |
