Skip to main content

function

lstat

lstat(path: String) -> stat_result

Get the status of a file or a file descriptor (similar to stat, but does not follow symlinks).

Args:

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

Returns:

Returns the stat_result on the path.

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

Get the status of a file or a file descriptor (similar to stat, but does not follow symlinks).

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.