MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / hashFile

Function hashFile

src/antlr4helper/utils.py:11–13  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

9 return hashlib.md5(content.encode('utf-8')).hexdigest()
10
11def hashFile(file_path):
12 f = open(file_path, 'r', encoding='utf-8')
13 return hashString(f.read())
14
15# parse file
16def stringClean(string:str):

Callers

nothing calls this directly

Calls 1

hashStringFunction · 0.85

Tested by

no test coverage detected