MCPcopy Index your code
hub / github.com/google/adk-python / _has_parent_reference

Function _has_parent_reference

src/google/adk/cli/fast_api.py:131–132  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

129 return path.replace("\\", "/").lstrip("/")
130
131 def _has_parent_reference(path: str) -> bool:
132 return any(part == ".." for part in path.split("/"))
133
134 _ALLOWED_EXTENSIONS = frozenset({".yaml", ".yml"})
135

Callers 4

_parse_file_pathMethod · 0.85
_parse_upload_filenameFunction · 0.85
_parse_file_pathFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected