Function lrs::file::set_times_no_follow

Changes the access and modification times of a file without following symbolic links.

Syntax

fn set_times_no_follow<P>(path: P, access: TimeChange, modification: TimeChange) -> Result<(), Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path of the file we want to modify.

access

The access time change to be performed.

modification

The modification time change to be performed.

Remarks

If path refers to a symbolic link, the times of the symbolic link itself will be modified.

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

See also