[−][src]Function atomicwrites::move_atomic
pub fn move_atomic(src: &Path, dst: &Path) -> Result<()>
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.