Skip to main content
Log in

Mojo function

stat

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.

Was this page helpful?