Function atomicwrites::move_atomic

source ยท
pub fn move_atomic(src: &Path, dst: &Path) -> Result<()>
Expand description

Move src to dst. An error will be returned if dst exists.

Both paths must reside on the same filesystem for the operation to be atomic.