Skip to content

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

Merged
igungor merged 11 commits into
peak:masterfrom
kucukaslan:fix-348-delete-local-file
Aug 22, 2022
Merged

igungor merged 11 commits into
peak:masterfrom
kucukaslan:fix-348-delete-local-file

Conversation

@kucukaslan

Copy link
Copy Markdown
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 review from a team, aykutfarsak and igungor and removed request for a team July 28, 2022 08:24
Comment thread command/cp.go
@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