Moves the finished tmp to target. Another process writing the same content (the names are keyed by it) may have put it there first, and Windows does not let a rename replace a file that is open, so a target of the same size is taken as it is.
tmp
target
Moves the finished
tmptotarget. Another process writing the same content (the names are keyed by it) may have put it there first, and Windows does not let a rename replace a file that is open, so a target of the same size is taken as it is.