Skip to main content

volume_root

Function volume_root 

Source
pub fn volume_root(path: &Path) -> Option<String>
Expand description

The drive root used for querying an absolute Windows path: C:\, never C:\Users\... and never a verbatim \\?\C:\....

Pure and platform-independent so the verbatim form - which is what the queue stores and what closed the disk gate on every task - is asserted without a Windows runner. None when there is no drive letter to name: UNC shares remain unsupported, rather than inventing a drive volume.