std:std.filesystem.ExtractRootDir
Extracts the root directory from a file system path.
A root directory is a directory path that:
path