We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59559b1 commit dbb047bCopy full SHA for dbb047b
crates/etc-merge/src/lib.rs
@@ -736,7 +736,10 @@ pub fn merge(
736
Ok(..) => { /* no-op */ }
737
// Removed file's not present in the new etc dir, nothing to do
738
Err(e) if e.kind() == std::io::ErrorKind::NotFound => continue,
739
- Err(e) => Err(e)?,
+ Err(e) if e.kind() == std::io::ErrorKind::IsADirectory => {
740
+ new_etc_fd.remove_dir_all(&removed).context(format!("Failed to remove dir {removed:?}"))?
741
+ }
742
+ Err(e) => Err(e).context(format!("Failed to remove file {removed:?}"))?,
743
}
744
745
println!("- Removed file {removed:?}");
0 commit comments