fn rename_path_with_retry(
    from: &Path,
    to: &Path,
    retries_left: usize
) -> Result<()>