4 references to IsRoot
System.Private.CoreLib (4)
src\libraries\Common\src\System\IO\PathInternal.cs (2)
220
EndsInDirectorySeparator(path) && !
IsRoot
(path.AsSpan()) ?
234
EndsInDirectorySeparator(path) && !
IsRoot
(path) ?
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (2)
51
_name = name = (PathInternal.
IsRoot
(fullPath) ?
67
string? parentName = Path.GetDirectoryName(PathInternal.
IsRoot
(FullPath.AsSpan()) ? FullPath : Path.TrimEndingDirectorySeparator(FullPath));