Function git_repository::path::is_absolute
source · pub fn is_absolute(path: impl AsRef<Path>) -> boolExpand description
return true if path is absolute, which depends on the platform but is always true if it starts with a slash, hence looks like
a linux path.