summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/cache/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/cache/mod.rs b/cli/cache/mod.rs
index cc183530d..4500e3a4a 100644
--- a/cli/cache/mod.rs
+++ b/cli/cache/mod.rs
@@ -74,6 +74,10 @@ impl deno_cache_dir::DenoCacheEnv for RealDenoCacheEnv {
atomic_write_file_with_retries(path, bytes, CACHE_PERM)
}
+ fn remove_file(&self, path: &Path) -> std::io::Result<()> {
+ std::fs::remove_file(path)
+ }
+
fn modified(&self, path: &Path) -> std::io::Result<Option<SystemTime>> {
match std::fs::metadata(path) {
Ok(metadata) => Ok(Some(