MCPcopy
hub / github.com/github/spec-kit / _sha256_file

Function _sha256_file

src/specify_cli/integration_status.py:90–95  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

88
89
90def _sha256_file(path: Path) -> str:
91 h = hashlib.sha256()
92 with open(path, "rb") as fh:
93 for chunk in iter(lambda: fh.read(8192), b""):
94 h.update(chunk)
95 return h.hexdigest()
96
97
98def _strip_extended_length_prefix(path: Path) -> Path:

Callers 1

_manifest_file_statusFunction · 0.85

Calls 2

readMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected