cap_primitives::fs

Function 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.