MCPcopy
hub / github.com/openai/plugins / require_target

Function require_target

plugins/codex-security/scripts/workbench_db.py:722–729  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

720
721
722def require_target(value: str) -> Path:
723 expanded = Path(value).expanduser()
724 if not expanded.is_absolute():
725 raise SystemExit("Scan target must be an absolute local directory path.")
726 target = expanded.resolve()
727 if not target.is_dir():
728 raise SystemExit(f"Scan target is not a readable local directory: {target}")
729 return target
730
731
732def require_remediation_target(value: str) -> Path:

Callers 8

inspect_targetFunction · 0.85
inspect_setup_valuesFunction · 0.85
set_capability_preflightFunction · 0.85
begin_diff_resolutionFunction · 0.85
set_diff_targetFunction · 0.85
start_scanFunction · 0.85
require_unchanged_targetFunction · 0.85
workspace_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected