Skip to main content

function

listdir

listdir(path: String = "") -> List[String]

Gets the list of entries contained in the path provided.

Args:

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

Returns:

Returns the list of entries in the path provided.

listdir[pathlike: PathLike](path: pathlike) -> List[String]

Gets the list of entries contained in the path provided.

Parameters:

  • pathlike (PathLike): The a type conforming to the os.PathLike trait.

Args:

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

Returns:

Returns the list of entries in the path provided.