#![allow(dead_code)] use std::path::Path; use tokio::fs::remove_file; use crate::errors::McError; pub async fn remove_if_exists(path: &Path) -> Result<(), McError> { if path.exists() { remove_file(path).await?; } Ok(()) }