Check if a directory contains metadata.json and is therefore a game folder
(log_dir: Path)
| 349 | |
| 350 | |
| 351 | def 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 | |
| 357 | def load_metadata(log_dir: Path) -> Metadata: |
no outgoing calls
no test coverage detected