Skip to main content

is_absolute

Function is_absolute 

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

Whether path, canonical (a leading ~ expanded), is absolute: Perl pathname_is_absolute, File::Spec’s file_name_is_absolute. On Windows a rooted path without a drive (/figs, \\figs) counts, as File::Spec::Win32 counts it, where Path::is_absolute asks for a drive; a drive-relative C:figs does not.