Check if a URL points to a zip file.
(self, url: str)
| 1461 | return url.endswith(".git") or url.startswith("git://") |
| 1462 | |
| 1463 | def _is_zip_url(self, url: str) -> bool: |
| 1464 | """Check if a URL points to a zip file.""" |
| 1465 | if not url: |
| 1466 | return False |
| 1467 | return url.endswith(".zip") or ".zip?" in url |
| 1468 | |
| 1469 | def _classify_url_type(self, url: str) -> str: |
| 1470 | """Classify a URL as 'git', 'zip', 'file', or 'unknown'.""" |
no outgoing calls