Skip to main content

function

isfile

isfile(path: String) -> Bool

Test whether a path is a regular file.

Args:

  • path (String): The path to the directory.

Returns:

Returns True if the path is a regular file.

isfile[pathlike: PathLike](path: pathlike) -> Bool

Test whether a path is a regular file.

Parameters:

  • pathlike (PathLike): The a 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.