Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download with a temporary local file name and delete if interrupted #280

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

jpgill86
Copy link
Owner

@jpgill86 jpgill86 commented Nov 29, 2020

Previously, incomplete files resulting from interrupted downloads were left in the local data directory and could not be distinguished later from a complete download. The user was forced to determine whether the file was complete or not, and manually delete it before retrying.

Now, while a file is downloading, it will have the suffix .part to distinguish it from a completed download. When the download completes, the suffix is removed; if the download is interrupted, the file will be deleted.

Closes #58.

@jpgill86 jpgill86 added the enhancement New feature or request label Nov 29, 2020
@jpgill86 jpgill86 added this to the 1.5.0 milestone Nov 29, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 64.366% when pulling 6384412 on temp-download into ec761af on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 64.366% when pulling 6384412 on temp-download into ec761af on master.

@jpgill86 jpgill86 merged commit 21f4a86 into master Nov 29, 2020
@jpgill86 jpgill86 deleted the temp-download branch November 29, 2020 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up incomplete/interrupted downloads
2 participants