Please sign in to comment.
[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...