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

Function regular_status

scripts/ci/verify-release-selection.py:102–111  ·  view source on GitHub ↗
(path: pathlib.Path, *, ceiling: int, label: str)

Source from the content-addressed store, hash-verified

100
101
102def regular_status(path: pathlib.Path, *, ceiling: int, label: str) -> os.stat_result:
103 try:
104 status = path.lstat()
105 except FileNotFoundError as error:
106 raise ContractError(f"missing {label}: {path}") from error
107 if not stat.S_ISREG(status.st_mode):
108 raise ContractError(f"{label} is not a regular non-symlink file: {path}")
109 if status.st_size > ceiling:
110 raise ContractError(f"{label} exceeds the {ceiling}-byte ceiling: {path}")
111 return status
112
113
114def load_selection(

Callers 2

load_selectionFunction · 0.70
mainFunction · 0.70

Calls 1

ContractErrorClass · 0.70

Tested by

no test coverage detected