(output_url: str)
| 130 | |
| 131 | |
| 132 | def _workspace_relative_path(output_url: str) -> str: |
| 133 | parsed = urllib.parse.urlparse(output_url) |
| 134 | path = parsed.path if parsed.scheme else output_url |
| 135 | prefix = "/workspace/" |
| 136 | if path.startswith(prefix): |
| 137 | return _validate_workspace_path(urllib.parse.unquote(path[len(prefix):])) |
| 138 | return _validate_workspace_path(urllib.parse.unquote(path)) |
| 139 | |
| 140 | |
| 141 | def _is_windows_drive_component(component: str) -> bool: |
no test coverage detected