Skip to main content

tmp_path_for

Function tmp_path_for 

Source
pub fn tmp_path_for(final_path: &Path) -> PathBuf
Expand description

Temp path for final_path: same directory, same file name plus .tmp.

Same directory matters: fs::rename is only atomic within one filesystem.