pub fn atomic_rename_copy(
dst_path: &Path,
src_path: &Path,
_perms: u32,
) -> Result<()>Expand description
Atomically copy a file by writing to a temp file then renaming.
On Unix, sets file permissions to perms. On Windows, permissions are ignored.