Skip to main content

enrich_rename_error

Function enrich_rename_error 

Source
pub fn enrich_rename_error(src: &Path, dst: &Path, err: Error) -> Error
Expand description

Wrap an EXDEV error from fs::rename with both the source temp path and the destination — the user needs both to understand which mount boundary the rename tripped on. Other error kinds delegate to enrich_fs_error using the destination as the principal path.