MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / identity

Function identity

tests/coverage_live_v2_support.py:50–54  ·  view source on GitHub ↗
(path, executable=False)

Source from the content-addressed store, hash-verified

48
49
50def identity(path, executable=False):
51 target = Path(path).resolve(strict=True)
52 if not target.is_file() or (executable and not os.access(target, os.X_OK)):
53 raise Infrastructure("not a regular readable/executable input: " + str(target))
54 return {"path": str(target), "sha256": digest(target), "bytes": target.stat().st_size}
55
56
57class Processes:

Callers 1

__init__Method · 0.90

Calls 3

strFunction · 0.85
InfrastructureClass · 0.70
digestFunction · 0.70

Tested by 1

__init__Method · 0.72