Sets an attribute of a file without following symbolic links.
fn set_attr_no_follow<P, S, V>(path: P, name: S, val: V) -> Result<(), Errno>
where S: ToCString,
P: ToCString,
V: AsRef<[u8]>,| Name | Description |
|---|---|
| path | The path of the file whose attribute to change. |
| name | The name of the attribute. |
| val | The new value of the attribute. |
If the attribute does not exist, it will be created. If the attribute exists, it will be overwritten.
If the path refers to a symbolic link, the attribute of the link will be set.
If the path is relative, it will be interpreted relative to the current working directory.