Skip to main content

tmp_path

Function tmp_path 

Source
pub fn tmp_path(path: &Path) -> PathBuf
Expand 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.