This repository has been archived by the owner on Nov 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sync] download files to a temporary filename, then rename
This fix makes all the downloads happen to temporary files of type .s3cmd.XXXXX.tmp in the same folder as the target file's. Once the download is complete, the file is renamed to the actual destination. This renaming is atomic in nature; hence any parallel thread or process could work on fully downloaded data (by filtering all files matching .s3cmd.XXXXX.tmp pattern while walking the data directory). s3tools#81 Patch manually applied by Matt Domsch because this portion of the code has changed more than pulling or rebasing could handle.
- Loading branch information