Function std::fs::set_file_times [] [src]

pub fn set_file_times<P: AsRef<Path>>(path: P, accessed: u64, modified: u64) -> Result<()>
Deprecated since 1.3.0

: will never be stabilized as-is and its replacement will likely have a totally new API

Changes the timestamps for a file's last modification and access time.

The file at the path specified will have its last access time set to accessed`accessedand its modification time set tomodified`. The times specified should be in milliseconds.