Skip to main content

tmp_path

Function tmp_path 

Source
pub fn tmp_path(path: &Path) -> PathBuf
Expand description

Appends .tmp to any path.

The write-then-rename partner for atomic file replacement: write to tmp_path(p), fsync, then rename onto p so a reader never observes a half-written file.