6 references to EndsInDirectorySeparator
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEntry.cs (1)
39
if (Path.
EndsInDirectorySeparator
(OriginalRootDirectory) && PathInternal.StartsWithDirectorySeparator(relativePath))
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (5)
602
bool needsSeparator = !(
EndsInDirectorySeparator
(path1) || PathInternal.StartsWithDirectorySeparator(path2));
630
int neededSeparators =
EndsInDirectorySeparator
(path1) || PathInternal.StartsWithDirectorySeparator(path2) ? 0 : 1;
631
bool needsSecondSeparator = !(
EndsInDirectorySeparator
(path2) || PathInternal.StartsWithDirectorySeparator(path3));
886
if (
EndsInDirectorySeparator
(relativeTo.AsSpan()))
889
bool pathEndsInSeparator =
EndsInDirectorySeparator
(path.AsSpan());