We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d99875 commit 7b483b4Copy full SHA for 7b483b4
crates/storage/db-common/src/db_tool/mod.rs
@@ -146,9 +146,11 @@ impl<N: ProviderNodeTypes> DbTool<N> {
146
fs::remove_dir_all(static_files_path)?;
147
fs::create_dir_all(static_files_path)?;
148
149
- let exex_wal_path = exex_wal_path.as_ref();
150
- info!(target: "reth::cli", "Dropping ExEx WAL at {:?}", exex_wal_path);
151
- fs::remove_dir_all(exex_wal_path)?;
+ if exex_wal_path.as_ref().exists() {
+ let exex_wal_path = exex_wal_path.as_ref();
+ info!(target: "reth::cli", "Dropping ExEx WAL at {:?}", exex_wal_path);
152
+ fs::remove_dir_all(exex_wal_path)?;
153
+ }
154
155
Ok(())
156
}
0 commit comments