Mojo function
exists
exists[PathLike: PathLike, //](path: PathLike) -> Bool
Return True if path exists.
Parameters:
- PathLike (
PathLike
): The type conforming to the os.PathLike trait.
Args:
- path (
PathLike
): The path to the directory.
Returns:
Returns True if the path exists and is not a broken symbolic link.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?