Function filetime::set_file_atime
source · pub fn set_file_atime<P>(p: P, atime: FileTime) -> Result<()>
Expand description
Set the last access time for a file on the filesystem.
This function will set the atime
metadata field for a file on the local
filesystem, returning any error encountered.
§Platform support
Where supported this will attempt to issue just one syscall to update only
the atime
, but where not supported this may issue one syscall to learn the
existing mtime
so only the atime
can be configured.