Skip to main content

drive_of

Function drive_of 

Source
pub fn drive_of(path: &str) -> Option<String>
Expand description

The drive of a Windows folder path, as C:: a letter, a colon, nothing else. None for a path that doesn’t start that way (a UNC path, an empty string).