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

Function _extended_path

plugins/codex-security/scripts/windows_scan_local_files.py:254–262  ·  view source on GitHub ↗

Return a Win32 extended-length path so long scan paths remain usable.

(path: Path)

Source from the content-addressed store, hash-verified

252
253
254def _extended_path(path: Path) -> str:
255 """Return a Win32 extended-length path so long scan paths remain usable."""
256
257 value = str(path)
258 if value.startswith("\\\\?\\"):
259 return value
260 if value.startswith("\\\\"):
261 return "\\\\?\\UNC\\" + value[2:]
262 return "\\\\?\\" + value
263
264
265def _normalized_windows_path(path: Path | str) -> str:

Callers 3

_create_fileFunction · 0.85
_create_directoryFunction · 0.85
_rename_handleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected