pub fn tmp_path(path: &Path) -> PathBufExpand description
Return the sibling temporary path used during an atomic write of path.
The temp path is path with .tmp appended to the file name, so it sits
in the same directory and can be renamed atomically onto the target.