Skip to content

fix(file-download): clean up temp file on download failure or abort - #881

Open
raushan728 wants to merge 1 commit into
anza-xyz:masterfrom
raushan728:fix/cleanup-temp-on-failure
Open

fix(file-download): clean up temp file on download failure or abort#881
raushan728 wants to merge 1 commit into
anza-xyz:masterfrom
raushan728:fix/cleanup-temp-on-failure

Conversation

@raushan728

Copy link
Copy Markdown
Contributor

download_file_with_headers left the tmp-{filename} temp file on disk on any failure/abort path since only the success path removed it. Added a TempFileGuard that removes the temp file on Drop unless the rename to destination succeeds.

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.

1 participant