Skip to content

Refactor download decisions and cache metadata - #155

Merged
D-VR merged 6 commits into
masterfrom
refactor-download-and-others
Jul 5, 2026
Merged

D-VR merged 6 commits into
masterfrom
refactor-download-and-others

Conversation

@D-VR

@D-VR D-VR commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Refactors sync download handling around explicit download states, typed cache metadata, and clearer tri-state decisions for skipping, updating, or conflict-preserving files.

Also cleans up config filter handling, name-clash logic, shared hash constants, stale download marker paths, and preserves compatibility with legacy caches that only stored is_downloaded.

D-VR added 5 commits July 5, 2026 11:38
Extract the change-detection and conflict logic out of download_file into
decide_download() / remote_unchanged() / assess_local_copy(), and replace
the boolean local_file_matches_etag with a tri-state classify_local_file()
returning MATCH / DIFFER / UNKNOWN.
@D-VR D-VR added the maintenance Chore or refactor label Jul 5, 2026
@D-VR
D-VR merged commit c1f11b1 into master Jul 5, 2026
4 checks passed
@D-VR
D-VR deleted the refactor-download-and-others branch July 5, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Chore or refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant