Mojo function
is_absolute
is_absolute[PathLike: PathLike, //](path: PathLike) -> Bool
Return True if path
is an absolute path name. On Unix, that means it begins with a slash.
Parameters:
- PathLike (
PathLike
): The type conforming to the os.PathLike trait.
Args:
- path (
PathLike
): The path to check.
Returns:
Return True
if path is an absolute path name.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!