s3tools/s3cmd — pull request #98 by orenhe (2012-12-31 21:09:10+00:00)
Title: Prevent 's3cmd get' from leaving dangling empty files on failure

's3cmd get' command opens destination files as 'ab' (append+write) before even trying to download. In effect, if the
file doesn't exist, s3cmd creates it.

This patch resolves an unwanted side-effect empty files being left by s3cmd after an error.
(e.g. file not found, no permission.)

Should only delete files that s3cmd created.

Signed-off-by: Oren Held