pub fn copy_atomic_sync( from: impl AsRef<Path>, to: impl AsRef<Path>, ) -> Result<()>
Copy from to to atomically using a temporary file and atomic rename.
from
to