Function lrs::file::change_mode

Change the mode of a file.

Syntax

fn change_mode<P>(path: P, mode: Mode) -> Result<(), Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path of the file whose mode will be changed.

mode

The new mode of the file.

Remarks

If the path refers to a symbolic link, the link will be recursively resolved and the mode of the first non-link target will be changed.

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

See also