Skip to main content

place

Function place 

Source
fn place(tmp: &Path, dest: &Path) -> Result<()>
Expand description

Give the finished copy its real name, only if nothing has it: two spawns relocating the same head at once both pass the exists check, and a rename would let the second replace the first’s copy under both markers (codex P1 on #3924). A hard link fails on an existing name, atomically.