From a01bab017064f9983c3c93cffef0c8143267193e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Sat, 10 Aug 2019 23:37:23 +0200 Subject: [PATCH] Fix build break from #327 (cherry picked from commit dbfa00cdb2f6e8423f805f9abffe94665cd5c22f) --- .../src/System/IO/FileSystemWatcher.OSX.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs b/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs index af543fc6fdca..877152066487 100644 --- a/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs +++ b/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs @@ -483,7 +483,7 @@ private unsafe void ProcessEvents(int numEvents, // Remove the base directory prefix and add the paired event to the list of // events to skip and notify the user of the rename if (events[pairedId].Span.Length >= _fullDirectory.Length - && _fullDirectory.AsSpan().Equals(events[pairedId].Span.Slice(0, _fullDirectory.Length), StringComparison.OrdinalIgnoreCase) + && _fullDirectory.AsSpan().Equals(events[pairedId].Span.Slice(0, _fullDirectory.Length), StringComparison.OrdinalIgnoreCase)) { ReadOnlySpan newPathRelativeName = events[pairedId].Span.Slice(_fullDirectory.Length); watcher.NotifyRenameEventArgs(WatcherChangeTypes.Renamed, newPathRelativeName, relativePath);