pub async fn finalize_temp(temp: &Path, dest: &Path) -> Result<()>Expand description
Renames temp over dest, for callers that already wrote/streamed their
own temp file (e.g. large-file copies) and only need the finalize step.
On Windows, an existing dest is removed first (rename there doesn’t
replace an existing file). On any failure, temp is removed.