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

Method list_names

unity_cli/api/uitree_snapshot.py:75–79  ·  view source on GitHub ↗

List all saved snapshot names.

(self)

Source from the content-addressed store, hash-verified

73 return _compare_elements(baseline_elements, current_elements)
74
75 def list_names(self) -> list[str]:
76 """List all saved snapshot names."""
77 if not self._dir.exists():
78 return []
79 return sorted(p.stem for p in self._dir.glob("*.json"))
80
81 def delete(self, name: str) -> bool:
82 """Delete a saved snapshot. Returns True if deleted."""

Callers 3

test_list_emptyMethod · 0.80
snapshot_listFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_list_emptyMethod · 0.64