diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-12-18 19:30:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 19:30:49 +0100 |
commit | b9165e9482465293aad99aff66bee6b64f739eb6 (patch) | |
tree | e51c490a6e02b5c84b9914986e8bee3510700d7a /cli/disk_cache.rs | |
parent | 37fd0836d01011640356d6ff83b29d39df83b03e (diff) |
fix: atomically write files to $DENO_DIR (#8822)
Diffstat (limited to 'cli/disk_cache.rs')
-rw-r--r-- | cli/disk_cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/disk_cache.rs b/cli/disk_cache.rs index 233990903..81b86c0ae 100644 --- a/cli/disk_cache.rs +++ b/cli/disk_cache.rs @@ -139,7 +139,7 @@ impl DiskCache { Some(ref parent) => self.ensure_dir_exists(parent), None => Ok(()), }?; - fs_util::write_file(&path, data, crate::http_cache::CACHE_PERM) + fs_util::atomic_write_file(&path, data, crate::http_cache::CACHE_PERM) .map_err(|e| with_io_context(&e, format!("{:#?}", &path))) } } |