pub fn with_retry_sync(
from: impl AsRef<Path>,
to: impl AsRef<Path>,
operation_name: &str,
operation: impl Fn() -> Result<(), Error>,
) -> Result<(), Error>Expand description
Rename or copy a file, retrying (on Windows) if it fails due to transient operating system errors, in a synchronous context.