Retrieves an attribute of a file without following symbolic links.
fn get_attr_no_follow<P, S>(path: P, name: S) -> Result<Vec<u8, Libc>, Errno>
where S: ToCString,
P: ToCString,| Name | Description |
|---|---|
| path | The path of the file whose attribute we want to retrieve. |
| name | The name of the attribute to retrieve. |
The attribute.
If the path refers to a symbolic link, the attribute of the link will be retrieved.
If the path is relative, it will be interpreted relative to the current working directory.