Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agentforce314/clawcodex
/ _is_within
Function
_is_within
src/tool_system/context.py:20–25 ·
view source on GitHub ↗
(child: Path, parent: Path)
Source
from the content-addressed store, hash-verified
18
19
20
def
_is_within(child: Path, parent: Path) -> bool:
21
try
:
22
child.relative_to(parent)
23
return
True
24
except
ValueError:
25
return
False
26
27
28
@dataclass
Callers
2
ensure_allowed_path
Method · 0.70
ensure_readable_path
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected