MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / hash_all_files

Function hash_all_files

extern/utils/sourceBuild.py:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 return shash.hexdigest()
14
15def hash_all_files():
16 with open('output.source', 'w') as outfile:
17 for filename in glob.glob('./**/*.zip'):
18 shash = hash_file(filename)
19 outfile.write(shash.upper() + '\n')
20 outfile.write(filename[2:] + '\n')
21
22
23hash_all_files()

Callers 1

sourceBuild.pyFile · 0.85

Calls 1

hash_fileFunction · 0.85

Tested by

no test coverage detected