Skip to main content

function

stat

stat(path: String) -> stat_result

Get the status of a file or a file descriptor.

Args:

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

Returns:

Returns the stat_result on the path.

stat[pathlike: PathLike](path: pathlike) -> stat_result

Get the status of a file or a file descriptor.

Parameters:

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

Args:

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

Returns:

Returns the stat_result on the path.