cargo_util::paths

Function set_file_time_no_err

Source
pub fn set_file_time_no_err<P: AsRef<Path>>(path: P, time: FileTime)
Expand description

Changes the filesystem mtime (and atime if possible) for the given file.

This intentionally does not return an error, as this is sometimes not supported on network filesystems. For the current uses in Cargo, this is a “best effort” approach, and errors shouldn’t be propagated.