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

Function check_md5

tools/python/maps_generator/utils/md5.py:20–27  ·  view source on GitHub ↗
(fname, name)

Source from the content-addressed store, hash-verified

18
19
20def check_md5(fname, name):
21 h = md5sum(fname)
22 with open(name, "r") as f:
23 data = f.read()
24 assert len(data) != 0, f"The file {name} is empty"
25 if data.split()[0] == h:
26 return True
27 return False
28
29
30def md5_ext(name):

Callers 1

is_verifiedFunction · 0.90

Calls 2

md5sumFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected