1 2 3 4 5 6 7 8
use std::path::Path; use filetime::FileTime; pub fn touch_access_time(path: &Path) { let now = FileTime::now(); let _ = filetime::set_file_atime(path, now); }