MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _expand_path

Function _expand_path

src/tool_system/tools/write.py:38–40  ·  view source on GitHub ↗

Normalize ``~``, ``.``, and ``..`` to an absolute path string.

(file_path: str)

Source from the content-addressed store, hash-verified

36# ---------------------------------------------------------------------------
37
38def _expand_path(file_path: str) -> str:
39 """Normalize ``~``, ``.``, and ``..`` to an absolute path string."""
40 return str(Path(file_path).expanduser().resolve())
41
42
43# ---------------------------------------------------------------------------

Callers 4

_validate_inputFunction · 0.70
_is_auto_memory_writeFunction · 0.70
_write_callFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected