Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 0.10.0 - 07-17-2026

#### Fixed

* Fixed CLI event handling panic when resuming a "restart from beginning"
Expand Down
11 changes: 5 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cloud-copy"
version = "0.9.0"
version = "0.10.0"
description = "A library for copying files to and from cloud storage."
license = "MIT OR Apache-2.0"
edition = "2024"
Expand Down Expand Up @@ -45,7 +45,7 @@ futures = "0.3.31"
git-testament = { version = "0.2.6", optional = true }
hex = "0.4.3"
hmac = "0.13.0"
http-cache-stream-reqwest = "0.4.0"
http-cache-stream-reqwest = "0.5.0"
opool = "0.2.0"
pin-project-lite = "0.2.16"
rand = "0.10.1"
Expand Down
8 changes: 4 additions & 4 deletions src/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use futures::TryFutureExt;
use futures::TryStreamExt;
use futures::stream;
use http_cache_stream_reqwest::CacheStorage;
use http_cache_stream_reqwest::X_CACHE_DIGEST;
use http_cache_stream_reqwest::X_CACHE_KEY;
use reqwest::StatusCode;
use reqwest::header;
use tempfile::NamedTempFile;
Expand Down Expand Up @@ -324,13 +324,13 @@ where

// Check to see if we should link to the cache location
if self.backend.config().link_to_cache()
&& let Some(digest) = response
&& let Some(key) = response
.headers()
.get(X_CACHE_DIGEST)
.get(X_CACHE_KEY)
.and_then(|v| v.to_str().ok())
&& let Some(cache) = self.backend.cache()
{
let path = cache.storage().body_path(digest);
let path = cache.storage().body_path(key);
if path.is_file() {
// Remove the existing temp file and replace it with a hard link
fs::remove_file(info.destination).await.ok();
Expand Down
Loading