MCPcopy Create free account
hub / github.com/comaps/comaps / md5sum

Function md5sum

tools/python/maps_generator/utils/md5.py:4–11  ·  view source on GitHub ↗
(name, block_size=4096)

Source from the content-addressed store, hash-verified

2
3
4def md5sum(name, block_size=4096):
5 d = hashlib.md5()
6 with open(name, mode="rb") as f:
7 buf = f.read(block_size)
8 while len(buf) > 0:
9 d.update(buf)
10 buf = f.read(block_size)
11 return d.hexdigest()
12
13
14def write_md5sum(fname, name):

Callers 2

write_md5sumFunction · 0.85
check_md5Function · 0.85

Calls 2

readMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected