Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MD5 hash and file size checks, improve clean_exit() (#11)
* add sizeInBytes check if no md5 hash in xml * if download error then exit with 1 * change to defaultdict; use double-quotes; add filename instead of org_name * rank order: md5 > sizeInBytes * ' --> " * Default file size to None if not present in XML * ' --> " * Fix MD5 and sizeInBytes logic within is_broken() - Messages to user about broken/missing MD5/size information is only shown when downloading those files - MD5 match takes precedence over sizeInBytes (overrides bad size) - sizeInBytes will be used if no MD5 present, but won't override bad MD5 * Streamline clean_exit() - Leave choice to remove temp files to user if interactive - Don't remove temp if non-interactive and there are failed files * Fix final clean_exit() call Co-authored-by: orangeSi <[email protected]>
- Loading branch information