MCPcopy Create free account
hub / github.com/InternScience/SciReason / check_integrity

Function check_integrity

opencompass/utils/fileio.py:345–350  ·  view source on GitHub ↗
(fpath, md5=None)

Source from the content-addressed store, hash-verified

343
344
345def check_integrity(fpath, md5=None):
346 if not os.path.isfile(fpath):
347 return False
348 if md5 is None:
349 return True
350 return check_md5(fpath, md5)
351
352
353def download_url_to_file(url, dst, hash_prefix=None, progress=True):

Callers 1

download_urlFunction · 0.85

Calls 1

check_md5Function · 0.85

Tested by

no test coverage detected