MCPcopy Create free account
hub / github.com/apache/fory / to_workspace_path

Function to_workspace_path

ci/validate_fory_site_sync.py:66–70  ·  view source on GitHub ↗
(root: pathlib.Path, relative_path: str)

Source from the content-addressed store, hash-verified

64
65
66def to_workspace_path(root: pathlib.Path, relative_path: str) -> pathlib.Path:
67 posix_path = pathlib.PurePosixPath(relative_path)
68 if posix_path.is_absolute() or ".." in posix_path.parts:
69 raise ValueError(f"invalid sync path: {relative_path}")
70 return root.joinpath(*posix_path.parts)
71
72
73def sync_files(

Callers 1

sync_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected