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

command: fix target file is created despite the download failure #477

Merged
merged 11 commits into from
Aug 22, 2022
Merged

command: fix target file is created despite the download failure #477

merged 11 commits into from
Aug 22, 2022

Conversation

kucukaslan
Copy link
Contributor

Before downloading a file from s3 a local target file is created. If the download fails the created file should've been deleted. But since the file was not closed, the delete operation fails in Windows.

Fixes #348

@kucukaslan kucukaslan requested a review from a team as a code owner July 28, 2022 08:24
@kucukaslan kucukaslan requested review from igungor and aykutfarsak and removed request for a team July 28, 2022 08:24
command/cp.go Show resolved Hide resolved
@igungor igungor merged commit 13aa68a into peak:master Aug 22, 2022
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.

cp command downloads file from S3 even though the file does not exist on the S3 bucket
3 participants