Skip to main content

prompt_sudo_retry

Function prompt_sudo_retry 

Source
fn prompt_sudo_retry(failed: Vec<(PathBuf, Error)>) -> Result<()>
Expand description

Ask the user (y/N) whether to retry the failed paths with sudo rm -rf. Returns Ok(()) if the retry succeeded or the user opted out cleanly. Returns Err if sudo failed or the user declined and we want to surface that as a non-zero exit.