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

Function _normalize_relative_path

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

Source from the content-addressed store, hash-verified

126 return app_root
127
128 def _normalize_relative_path(path: str) -> str:
129 return path.replace("\\", "/").lstrip("/")
130
131 def _has_parent_reference(path: str) -> bool:
132 return any(part == ".." for part in path.split("/"))

Callers 4

_parse_file_pathMethod · 0.85
_parse_upload_filenameFunction · 0.85
_parse_file_pathFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected