Method lrs::file::File::rel_set_times

Changes the access and modification times of a file pointed to by a path relative to this file.

Syntax

impl File {
    fn rel_set_times<P>(&self, path: P, access: TimeChange, modification: TimeChange) -> Result<(), Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

The path of the file.

access

The new access time.

modification

The new modification time.

Remarks

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

See also