Browse Source

update comparisons

Luke Pulverenti 8 years ago
parent
commit
f3981e1ec4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Emby.Server.Core/IO/LibraryMonitor.cs

+ 3 - 3
Emby.Server.Core/IO/LibraryMonitor.cs

@@ -453,7 +453,7 @@ namespace Emby.Server.Core.IO
             // If the parent of an ignored path has a change event, ignore that too
             // If the parent of an ignored path has a change event, ignore that too
             if (tempIgnorePaths.Any(i =>
             if (tempIgnorePaths.Any(i =>
             {
             {
-                if (string.Equals(i, path, StringComparison.OrdinalIgnoreCase))
+                if (_fileSystem.AreEqual(i, path))
                 {
                 {
                     Logger.Debug("Ignoring change to {0}", path);
                     Logger.Debug("Ignoring change to {0}", path);
                     return true;
                     return true;
@@ -469,7 +469,7 @@ namespace Emby.Server.Core.IO
                 var parent = Path.GetDirectoryName(i);
                 var parent = Path.GetDirectoryName(i);
                 if (!string.IsNullOrEmpty(parent))
                 if (!string.IsNullOrEmpty(parent))
                 {
                 {
-                    if (string.Equals(parent, path, StringComparison.OrdinalIgnoreCase))
+                    if (_fileSystem.AreEqual(parent, path))
                     {
                     {
                         Logger.Debug("Ignoring change to {0}", path);
                         Logger.Debug("Ignoring change to {0}", path);
                         return true;
                         return true;
@@ -500,7 +500,7 @@ namespace Emby.Server.Core.IO
                 foreach (var refresher in refreshers)
                 foreach (var refresher in refreshers)
                 {
                 {
                     // Path is already being refreshed
                     // Path is already being refreshed
-                    if (string.Equals(path, refresher.Path, StringComparison.Ordinal))
+                    if (_fileSystem.AreEqual(path, refresher.Path))
                     {
                     {
                         refresher.RestartTimer();
                         refresher.RestartTimer();
                         return;
                         return;