Skip to main content
Log in

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.