MCPcopy Create free account
hub / github.com/FastLED/FastLED / _is_zip_web_url

Function _is_zip_web_url

ci/compiler/platformio_cache.py:496–505  ·  view source on GitHub ↗

Enhanced URL detection for zip artifacts.

(value: str)

Source from the content-addressed store, hash-verified

494
495
496def _is_zip_web_url(value: str) -> bool:
497 """Enhanced URL detection for zip artifacts."""
498 if not isinstance(value, str):
499 return False
500
501 parsed = urllib.parse.urlparse(value)
502 # Direct zip URLs
503 if value.endswith(".zip"):
504 return parsed.scheme in ("http", "https")
505 return False
506
507
508def validate_and_detect_manifest(

Callers 3

optimizeMethod · 0.90
optimize_enhancedMethod · 0.90
_collect_all_zip_urlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected