diff options
-rw-r--r-- | src/source/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/source/mod.rs b/src/source/mod.rs index 90e69d8..ae305ad 100644 --- a/src/source/mod.rs +++ b/src/source/mod.rs @@ -57,6 +57,10 @@ impl SourceEntry { self.package_source.url() } + pub async fn remove_file(&self) -> Result<()> { + tokio::fs::remove_file(&self.package_source_path).await.map_err(Error::from) + } + pub async fn verify_hash(&self) -> Result<bool> { use tokio::io::AsyncReadExt; |