(cherry picked from commit dbfa00cdb2)
This commit is contained in:
Alexander Köplinger 2019-08-10 23:37:23 +02:00
Родитель b2127b524e
Коммит b938994364
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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
&& _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<char> newPathRelativeName = events[pairedId].Span.Slice(_fullDirectory.Length);
watcher.NotifyRenameEventArgs(WatcherChangeTypes.Renamed, newPathRelativeName, relativePath);