MCPcopy Create free account
hub / github.com/openai/plugins / _invalid_path

Function _invalid_path

plugins/codex-security/scripts/windows_scan_local_files.py:222–223  ·  view source on GitHub ↗
(path: Path | str, reason: str)

Source from the content-addressed store, hash-verified

220
221
222def _invalid_path(path: Path | str, reason: str) -> WindowsScanLocalFileError:
223 return WindowsScanLocalFileError(errno.EINVAL, reason, str(path))
224
225
226def _validated_parts(relative_path: str) -> tuple[str, ...]:

Callers 7

_validated_partsFunction · 0.85
_verify_handle_pathFunction · 0.85
_verify_directoryFunction · 0.85
_verify_regular_fileFunction · 0.85
_locked_parentFunction · 0.85
unlink_if_existsFunction · 0.85

Calls 1

Tested by

no test coverage detected