Function filetime::set_file_times

source ·
pub fn set_file_times<P>(p: P, atime: FileTime, mtime: FileTime) -> Result<()>where
    P: AsRef<Path>,
Expand description

Set the last access and modification times for a file on the filesystem.

This function will set the atime and mtime metadata fields for a file on the local filesystem, returning any error encountered.