(path: str)
| 2752 | |
| 2753 | |
| 2754 | def _safe_resolve(path: str) -> Optional[Path]: |
| 2755 | try: |
| 2756 | resolved = Path(path).expanduser().resolve() |
| 2757 | except Exception: |
| 2758 | return None |
| 2759 | if log_root_path: |
| 2760 | try: |
| 2761 | resolved.relative_to(log_root_path) |
| 2762 | except Exception: |
| 2763 | return None |
| 2764 | return resolved |
| 2765 | |
| 2766 | |
| 2767 | def _log_kind(path: Path) -> str: |
no test coverage detected