Skip to content

command: fix file overriding when download fails (#479) - #582

Merged
sonmezonur merged 11 commits into
peak:masterfrom
ahmethakanbesel:local-file-is-overriden-when-download-fails
Jul 13, 2023
Merged

sonmezonur merged 11 commits into
peak:masterfrom
ahmethakanbesel:local-file-is-overriden-when-download-fails

Conversation

@ahmethakanbesel

@ahmethakanbesel ahmethakanbesel commented Jul 3, 2023

Copy link
Copy Markdown
Contributor

Resolves #479
Local files used to be overwritten even if downloads failed.
Solved it by creating a temporary file and renaming it with the original filename after completing the download successfully.

@ahmethakanbesel
ahmethakanbesel requested review from a team, ilkinulas and sonmezonur and removed request for a team July 3, 2023 14:50
sonmezonur
sonmezonur previously approved these changes Jul 6, 2023
@sonmezonur

Copy link
Copy Markdown
Member

@ahmethakanbesel Thanks for your PR. Could you please link your PR to the issue? (when PR merged it will automatically close the referenced issue) (docs)

@sonmezonur
sonmezonur self-requested a review July 6, 2023 11:55
Comment thread command/cp.go Outdated
Comment thread command/cp.go
Comment thread command/cp.go Outdated
Comment thread command/cp.go Outdated
sonmezonur
sonmezonur previously approved these changes Jul 7, 2023
Comment thread e2e/cp_test.go Outdated
Co-authored-by: İlkin Balkanay <[email protected]>
@sonmezonur
sonmezonur merged commit 6ac390f into peak:master Jul 13, 2023
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.

Local file is lost even if the download fails

4 participants