uskudnik/amazon-glacier-cmd-interface — pull request #82 by wvmarle (2012-10-15 16:42:51+00:00)
Title: Download resumption

Complete download resumption using the `--resume` option.

So what we have now (assume retrieving done):

`$ glacier-cmd download --outfile=`

Download archive to file_name.
If file exists: throw an exception and quit.

`$ glacier-cmd download --outfile= --overwrite`

Overwrite the existing file_name, if any.

`$ glacier-cmd download --outfile= --resume`

Attempt to resume download of archive to file_name.
Checks:
- download not complete yet (file size matches archive size, then hash check of complete file).
- check part hashes of the file to the part hashes of Amazon, using the biggest part possible for minimum number of checks.
If all checks out, download is resumed.