Function atomicwrites::move_atomic
[−]
[src]
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.