You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rm contains this bit of code, written back in July 2017:
use remove_dir_all::remove_dir_all;// -- snip --// we need the extra crate because apparently fs::remove_dir_all() does not function// correctly on WindowsifletErr(e) = remove_dir_all(path){
had_err = true;if e.kind() == std::io::ErrorKind::PermissionDenied{// GNU compatibility (rm/fail-eacces.sh)// here, GNU doesn't use some kind of remove_dir_all// It will show directory+fileshow_error!("cannot remove {}: {}", path.quote(),"Permission denied");}else{show_error!("cannot remove {}: {}", path.quote(), e);}}
It seems though that std::fs::remove_dir_all has had some improvements in the meantime (see rust-lang/cargo#11333), so I think it's safe to remove this dependency.
Activity