mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Resultify tools::delete_file()
This commit is contained in:
@@ -798,7 +798,14 @@ pub async fn remove_unused_files(context: &Context) -> Result<()> {
|
||||
entry.file_name()
|
||||
);
|
||||
let path = entry.path();
|
||||
delete_file(context, path).await;
|
||||
if let Err(err) = delete_file(context, &path).await {
|
||||
error!(
|
||||
context,
|
||||
"Failed to delete unused file {}: {:#}.",
|
||||
path.display(),
|
||||
err
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user