MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _path

Method _path

unity_cli/api/uitree_snapshot.py:39–43  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

37 self._dir = snapshot_dir
38
39 def _path(self, name: str) -> Path:
40 if not SNAPSHOT_NAME_RE.fullmatch(name):
41 msg = f"Invalid snapshot name: {name!r}"
42 raise ValueError(msg)
43 return self._dir / f"{name}.json"
44
45 def save(self, name: str, data: dict[str, Any]) -> Path:
46 """Save a tree dump as a named snapshot."""

Callers 3

saveMethod · 0.95
loadMethod · 0.95
deleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected