pub fn tmp_path_for(final_path: &Path) -> PathBuf
Temp path for final_path: same directory, same file name plus .tmp.
final_path
.tmp
Same directory matters: fs::rename is only atomic within one filesystem.
fs::rename