MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / is_game_folder

Function is_game_folder

codeclash/viewer/app.py:351–354  ·  view source on GitHub ↗

Check if a directory contains metadata.json and is therefore a game folder

(log_dir: Path)

Source from the content-addressed store, hash-verified

349
350
351def is_game_folder(log_dir: Path) -> bool:
352 """Check if a directory contains metadata.json and is therefore a game folder"""
353 metadata_file = log_dir / "metadata.json"
354 return metadata_file.exists()
355
356
357def load_metadata(log_dir: Path) -> Metadata:

Callers 6

indexFunction · 0.85
game_viewFunction · 0.85
analysis_line_countsFunction · 0.85
load_trajectory_detailsFunction · 0.85
load_trajectory_diffsFunction · 0.85
guess_config_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected