Function filetime::set_file_handle_times
source · [−]pub fn set_file_handle_times(
f: &File,
atime: Option<FileTime>,
mtime: Option<FileTime>
) -> Result<()>
Expand description
Set the last access and modification times for a file handle.
This function will either or both of the atime
and mtime
metadata
fields for a file handle , returning any error encountered. If None
is
specified then the time won’t be updated. If None
is specified for both
options then no action is taken.