fix(api): give desktop downloads a lifetime that follows the key (#1828)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-24 12:26:33 +02:00
1 parent 82eb87bc47
commit d339b82f8e
4 files changed
+166 -35

No files matched your search

-19
View File
@@ -469,25 +469,6 @@ where
Ok(())
}
pub(crate) async fn upload_directory_to_s3_overwrite<F>(
client: &S3Client,
bucket: &str,
prefix: &str,
root: &Path,
include: F,
) -> Result<()>
where
F: Fn(&Path) -> bool,
{
let plan = directory_upload_plan(prefix, root, include)?;
let stats = upload_s3_plan_overwrite(client, bucket, plan).await?;
println!(
"Overwrite upload complete for s3://{bucket}/{prefix}: uploaded {}",
stats.uploaded
);
Ok(())
}
pub(crate) async fn upload_s3_plan_append_only(
client: &S3Client,
bucket: &str,