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 b2d4b79 commit f5738f6Copy full SHA for f5738f6
crates/etc-merge/src/lib.rs
@@ -737,7 +737,10 @@ pub fn merge(
737
Ok(..) => { /* no-op */ }
738
// Removed file's not present in the new etc dir, nothing to do
739
Err(e) if e.kind() == std::io::ErrorKind::NotFound => continue,
740
- Err(e) => Err(e)?,
+ Err(e) if e.kind() == std::io::ErrorKind::IsADirectory => {
741
+ new_etc_fd.remove_dir_all(&removed).context(format!("Failed to remove dir {removed:?}"))?
742
+ }
743
+ Err(e) => Err(e).context(format!("Failed to remove file {removed:?}"))?,
744
}
745
746
println!("- Removed file {removed:?}");
0 commit comments