Function lrs::file::info

Retrieves information about a file.

Syntax

fn info<P>(path: P) -> Result<Info, Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path of the file whose information is to be retrieved.

Return value

The file information.

Remarks

If the path refers to a symbolic link, then it will recursively be resolved and the information of the first non-link target will be returned.

If the path is relative, it will be interpreted relative to the current working directory.

See also