Feature md5sum
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
Owner
👍 🅰 🅱 🅾 SS -
-
52 | 52 | self.actual_size = actual_size |
53 | 53 | self.base_name = base_name |
54 | 54 | |
55 | @property | |
56 | def checksum(self): | |
57 | return md5(self.get_path()).hexdigest() | |
Please
register
or
sign in
to reply
|
Added 1 new commit:
Added 1 new commit:
52 | 52 | self.actual_size = actual_size |
53 | 53 | self.base_name = base_name |
54 | 54 | |
55 | @property | |
56 | def checksum(self, blocksize=65536): | |
57 | hash = md5() | |
58 | with open(self.get_path(), "r+b") as f: | |
|
Added 1 new commit:
Added 1 new commit: