Function lrs::file::set_times

Changes the access and modification times of a file.

Syntax

fn set_times<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 symbolic link will recursively be resolved and the times of the first non-link target will be modified.

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

See also