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

Function regular_status

scripts/ci/select-release-candidates.py:112–121  ·  view source on GitHub ↗
(path: pathlib.Path, *, ceiling: int, label: str)

Source from the content-addressed store, hash-verified

110
111
112def regular_status(path: pathlib.Path, *, ceiling: int, label: str) -> os.stat_result:
113 try:
114 status = path.lstat()
115 except FileNotFoundError as error:
116 raise ContractError(f"missing {label}: {path}") from error
117 if not stat.S_ISREG(status.st_mode):
118 raise ContractError(f"{label} is not a regular non-symlink file: {path}")
119 if status.st_size > ceiling:
120 raise ContractError(f"{label} exceeds the {ceiling}-byte ceiling: {path}")
121 return status
122
123
124def parse_tsv(

Callers 3

parse_tsvFunction · 0.70
sha256_fileFunction · 0.70
copy_selectedFunction · 0.70

Calls 1

ContractErrorClass · 0.70

Tested by

no test coverage detected