MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / get_file_md5

Function get_file_md5

tools/env_utility.py:320–325  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

318
319
320def get_file_md5(file):
321 MD5 = hashlib.new('md5')
322 with open(file, 'r') as fp:
323 MD5.update(fp.read().encode('utf8'))
324 fp_md5 = MD5.hexdigest()
325 return fp_md5
326
327
328# Exclude utestcases

Callers 2

menuconfigFunction · 0.85
guiconfigFunction · 0.85

Calls 2

openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected