(path: Path)
| 2778 | |
| 2779 | |
| 2780 | def _log_label(path: Path) -> str: |
| 2781 | kind = _log_kind(path) |
| 2782 | if log_root_path: |
| 2783 | try: |
| 2784 | rel = path.relative_to(log_root_path) |
| 2785 | parent = rel.parent |
| 2786 | label = parent.name if parent.name else rel.name |
| 2787 | return f"{label} [{kind}]" |
| 2788 | except Exception: |
| 2789 | pass |
| 2790 | return f"{path.name} [{kind}]" |
| 2791 | |
| 2792 | |
| 2793 | def _collect_logs(root: Optional[Path]) -> list[dict]: |
no test coverage detected