pub fn move_atomic(src: &Path, dst: &Path) -> Result<()>
Move src to dst. An error will be returned if dst exists.
src
dst
Both paths must reside on the same filesystem for the operation to be atomic.