From 75af2448152f5be0ea3c373d9f4e0eed5e4eb6c4 Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 13 May 2026 17:54:19 -0700 Subject: [PATCH] Tick off Phase 6 download TODO --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c79002b..61b267a 100644 --- a/README.md +++ b/README.md @@ -642,11 +642,12 @@ Phase 5: collections and files Phase 6: download -- [ ] `downloadFile(fileID, outPath)` streams the encrypted body, decrypts it - chunk by chunk, writes plaintext to `outPath`. Resolves the filename from - the decrypted metadata title when no `outPath` is supplied. -- [ ] `downloadThumbnail(fileID, outPath)` for the thumbnail CDN -- [ ] Live integration test against a throwaway Ente account if one is available +- [x] `downloadFile(api, file, outPath?)` streams encrypted body, buffers to 4 + MiB chunk boundary, decrypts via secretstream pull, writes to disk. Falls + back to `metadata.title` when outPath is omitted. +- [x] `downloadThumbnail(api, file, outPath?)` same for thumbnails +- [x] Live integration test: logs in, decrypts collections and files, downloads + a real JPEG from the dev account and verifies it on disk Phase 7: session persistence