Skip to main content

is_absolute_path

Function is_absolute_path 

Source
pub fn is_absolute_path(path: &str) -> bool
Expand description

Filesystem::isAbsolutePath: /…, \…, C:/…/C:\…, or a stream wrapper (phar://…). On Unix only / exists in practice; the starts_with('/') form of the test missed Windows drive-letter paths.