Changes the access and modification times of a file.
fn set_times<P>(path: P, access: TimeChange, modification: TimeChange) -> Result<(), Errno>
where P: ToCString,| Name | Description |
|---|---|
| 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. |
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.