Skip to content

Conversation

@kan-fu
Copy link
Collaborator

@kan-fu kan-fu commented Dec 16, 2024

Fix #54.

This PR simply reverts download by chunk back to download all, so that when things go wrong, it should leave an empty file instead of a file with partial file size. Also added the logic to treat 0-size file as non-existent, so that it will get overwritten even if overwrite=False.

This is useful when users find that some files are not downloaded successfully. They can simply rerun the script to re-download those invalid files while skipping valid files.

@spencerwplovie spencerwplovie merged commit 341a075 into main Jan 6, 2025
6 checks passed
@kan-fu kan-fu deleted the issue-54-revert-download branch February 7, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve re-downloading files when the previous download was stopped mid-way

3 participants