(self, relative_path: str | Path)
| 60 | return path |
| 61 | |
| 62 | def resolve_under_workspace(self, relative_path: str | Path) -> Path: |
| 63 | rel = Path(relative_path) |
| 64 | target = rel.resolve() if rel.is_absolute() else (self.workspace_root / rel).resolve() |
| 65 | if self.workspace_root not in target.parents and target != self.workspace_root: |
| 66 | raise ValueError("Path is outside workspace") |
| 67 | return target |
| 68 | |
| 69 | def resolve_under_session(self, relative_path: str | Path) -> Path: |
| 70 | raw = Path(relative_path) |
no test coverage detected