MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / checked_path

Function checked_path

scripts/ui_browser_licenses.py:28–32  ·  view source on GitHub ↗
(root, name)

Source from the content-addressed store, hash-verified

26
27
28def checked_path(root, name):
29 path = PurePosixPath(name)
30 if not name or path.is_absolute() or ".." in path.parts or "\\" in name or ":" in name:
31 raise ValueError("invalid path in browser build evidence")
32 return root.joinpath(*path.parts)
33
34
35def validate_browser_build(ui_dir):

Callers 1

validate_browser_buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected