MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / hash_get

Function hash_get

pipcl.py:2839–2845  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

2837 cmd_path = f'{out}.cmd'
2838
2839 def hash_get(path):
2840 try:
2841 with open(path, 'rb') as f:
2842 return hashlib.md5(f.read()).hexdigest()
2843 except Exception as e:
2844 #log(f'Failed to get hash of {path=}: {e}')
2845 return None
2846
2847 command_args = shlex.split(command or '')
2848 command_arg0_path = fs_find_in_paths(command_args[0])

Callers 1

run_ifFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…