Skip to main content
Log in

Mojo function

isfile

isfile[PathLike: PathLike, //](path: PathLike) -> Bool

Test whether a path is a regular file.

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 is a regular file.