pub fn replace_file(from: &Path, to: &Path) -> Result<()>
Replaces to with from, atomically where the platform allows it.
to
from