Imported Upstream version 6.4.0.163

Former-commit-id: 514fcbca0069f87e623d780a8ba702ac3c20c327
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-08-10 08:39:31 +00:00
parent 7cf9ab2574
commit 62bebfff73
46 changed files with 43 additions and 43 deletions

View File

@@ -437,7 +437,7 @@ namespace System.IO
ReadOnlySpan<char> relativePath = ReadOnlySpan<char>.Empty;
if (!path.Equals(_fullDirectory, StringComparison.OrdinalIgnoreCase)
&& path.Length >= _fullDirectory.Length
&& _fullDirectory.AsSpan().Equals(path.Slice(_fullDirectory.Length), StringComparison.OrdinalIgnoreCase))
&& _fullDirectory.AsSpan().Equals(path.Slice(0, _fullDirectory.Length), StringComparison.OrdinalIgnoreCase))
{
// Remove the root directory to get the relative path
relativePath = path.Slice(_fullDirectory.Length);