Skip to content

Commit

Permalink
Merge pull request #53 from openpaul/folderdownload
Browse files Browse the repository at this point in the history
checksum computation path fix
  • Loading branch information
nebfield authored Sep 12, 2023
2 parents d390a0a + 1aea02a commit e885a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgscatalog_utils/download/ScoringFileChecksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _generate_md5_checksum(filename: str, blocksize=4096) -> typing.Union[str, N
""" Returns MD5 checksum for the given file. """
md5 = hashlib.md5()
try:
file = open(filename, 'rb')
file = open(config.OUTDIR.joinpath(filename), 'rb')
with file:
for block in iter(lambda: file.read(blocksize), b""):
md5.update(block)
Expand Down

0 comments on commit e885a72

Please sign in to comment.