Skip to main content

is_already_exists

Function is_already_exists 

Source
pub fn is_already_exists(err: &Error) -> bool
Expand description

Whether the error peels as dest-exists create/rename conflict.

True for both [crate::exit::AlreadyExistsError] and EditError with EditErrorKind::AlreadyExists, so the bool matches what hosts get from edit_error_kind (#1947).