Method pathname.getRootLength
Overload
Gets the length of the drive or network folder part in path, like @"C:\", @"\\server\share\", @"\\?\C:\", @"\\?\UNC\server\share\", etc.
public static int getRootLength(ReadOnlySpan<char> path)
Parameters
|
path (ReadOnlySpan<char>)
Full path or any string. Can be |