Function lrs::file::set_attr_no_follow

Sets an attribute of a file without following symbolic links.

Syntax

fn set_attr_no_follow<P, S, V>(path: P, name: S, val: V) -> Result<(), Errno>
    where S: ToCString,
          P: ToCString,
          V: AsRef<[u8]>,

Arguments

NameDescription
path

The path of the file whose attribute to change.

name

The name of the attribute.

val

The new value of the attribute.

Remarks

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.

See also