Extract just the header filename or relative path within project.
(self, path: str)
| 150 | return path |
| 151 | |
| 152 | def _extract_header_name(self, path: str) -> str: |
| 153 | """Extract just the header filename or relative path within project.""" |
| 154 | norm_path = self._normalize_path(path) |
| 155 | |
| 156 | # Try to extract relative to src/ |
| 157 | if "/src/" in norm_path: |
| 158 | parts = norm_path.split("/src/") |
| 159 | if len(parts) > 1: |
| 160 | return parts[-1] |
| 161 | |
| 162 | # Otherwise just return the filename |
| 163 | return Path(path).name |
| 164 | |
| 165 | def get_header_times(self, max_depth: int = 2) -> dict[str, Any]: |
| 166 | """ |
no test coverage detected