diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-10-01 14:05:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 14:05:40 -0400 |
commit | 4c8d57db03bac12d2a13566b3cc7454cfbd67314 (patch) | |
tree | 7f8ffe216dd78245ab327685e6b4752f8196be08 /cli/cache | |
parent | 29104384c4cb5aab082749382802560907ebec42 (diff) |
BREAKING: rename "deps" remote cache folder to "remote" (#25969)
Closes https://github.com/denoland/deno/issues/25967
Closes #25968
Diffstat (limited to 'cli/cache')
-rw-r--r-- | cli/cache/deno_dir.rs | 6 | ||||
-rw-r--r-- | cli/cache/mod.rs | 11 |
2 files changed, 3 insertions, 14 deletions
diff --git a/cli/cache/deno_dir.rs b/cli/cache/deno_dir.rs index 88d8a31c0..7b7059c22 100644 --- a/cli/cache/deno_dir.rs +++ b/cli/cache/deno_dir.rs @@ -126,9 +126,9 @@ impl DenoDir { self.root.join("registries") } - /// Path to the dependencies cache folder. - pub fn deps_folder_path(&self) -> PathBuf { - self.root.join("deps") + /// Path to the remote cache folder. + pub fn remote_folder_path(&self) -> PathBuf { + self.root.join("remote") } /// Path to the origin data cache folder. diff --git a/cli/cache/mod.rs b/cli/cache/mod.rs index 2296bce01..628502c50 100644 --- a/cli/cache/mod.rs +++ b/cli/cache/mod.rs @@ -87,10 +87,6 @@ impl deno_cache_dir::DenoCacheEnv for RealDenoCacheEnv { std::fs::create_dir_all(path) } - 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( @@ -149,13 +145,6 @@ impl<'a> deno_cache_dir::DenoCacheEnv for DenoCacheEnvFsAdapter<'a> { .map_err(|e| e.into_io_error()) } - fn remove_file(&self, path: &Path) -> std::io::Result<()> { - self - .0 - .remove_sync(path, false) - .map_err(|e| e.into_io_error()) - } - fn modified(&self, path: &Path) -> std::io::Result<Option<SystemTime>> { self .0 |