Method lrs::file::File::rel_change_owner

Changes the owner of a file relative to this file.

Syntax

impl File {
    fn rel_change_owner<P>(&self, path: P, user: u32, group: u32) -> Result<(), Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

A path to the file.

user

The user id of the new owner.

group

The group id of the new owner.

Remarks

If the path is relative, this file must be a directory and the path will be interpreted relative to it. If the path points to a symlink, the symlink will be resolved recursively and the owner of the first non-symlink target will be changed.

See also