Imported Upstream version 6.4.0.165

Former-commit-id: 1dd67fbb8089ef085e59a2bddfe883678ca5e520
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-08-11 08:39:25 +00:00
parent 62bebfff73
commit a2c042fe2a
46 changed files with 43 additions and 43 deletions

View File

@ -483,7 +483,7 @@ namespace System.IO
// 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
&& ((ReadOnlySpan<char>) events[pairedId].Span).Equals(_fullDirectory.AsSpan(0, events[pairedId].Span.Length), StringComparison.OrdinalIgnoreCase))
&& _fullDirectory.AsSpan().Equals(events[pairedId].Span.Slice(0, _fullDirectory.Length), StringComparison.OrdinalIgnoreCase))
{
ReadOnlySpan<char> newPathRelativeName = events[pairedId].Span.Slice(_fullDirectory.Length);
watcher.NotifyRenameEventArgs(WatcherChangeTypes.Renamed, newPathRelativeName, relativePath);