Function cap_primitives::fs::set_times
source ยท pub fn set_times(
start: &File,
path: &Path,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
) -> Result<()>
Expand description
Perform a utimensat
-like operation, ensuring that the resolution of the
path never escapes the directory tree rooted at start
. This function
follows symlinks.