pub(crate) fn replace_file(from: &Path, to: &Path) -> Result<()>
Replaces to with from in one step, flushing the move to disk.
to
from