peak / s5cmd

Parallel S3 and local filesystem execution tool.
MIT License
2.72k stars 243 forks source link

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

Closed ahmethakanbesel closed 1 year ago

ahmethakanbesel commented 1 year ago

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.

sonmezonur commented 1 year ago

@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)