|
|
@ -76,9 +76,15 @@ async fn process_mock(state: Arc<state::State>, file: String)
|
|
|
|
|
|
|
|
|
|
|
|
async fn process(state: Arc<state::State>, file: String) -> eyre::Result<()>
|
|
|
|
async fn process(state: Arc<state::State>, file: String) -> eyre::Result<()>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
delete::process(state, &file).await
|
|
|
|
let path = std::path::Path::new(&file);
|
|
|
|
|
|
|
|
if !path.exists() {
|
|
|
|
|
|
|
|
error!("{:?} does not exist, skipping", path);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
info!("{:?} Processing", path);
|
|
|
|
|
|
|
|
delete::process(state, path).await
|
|
|
|
.wrap_err(eyre!("Processing failed"))
|
|
|
|
.wrap_err(eyre!("Processing failed"))
|
|
|
|
.with_section(move || file.header("Root path was"))?;
|
|
|
|
.with_section(move || file.header("Root path was"))?;
|
|
|
|
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|