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

Function is_download_complete

ci/util/download_breadcrumb.py:97–112  ·  view source on GitHub ↗

Check if a download is marked as complete in its breadcrumb. Args: breadcrumb_path: Path to the breadcrumb file Returns: True if download is complete, False otherwise

(breadcrumb_path: Path)

Source from the content-addressed store, hash-verified

95
96
97def is_download_complete(breadcrumb_path: Path) -> bool:
98 """
99 Check if a download is marked as complete in its breadcrumb.
100
101 Args:
102 breadcrumb_path: Path to the breadcrumb file
103
104 Returns:
105 True if download is complete, False otherwise
106 """
107 data = read_breadcrumb(breadcrumb_path)
108 if data is None:
109 return False
110
111 status = data.get("status", "")
112 return status == "complete"
113
114
115def create_download_breadcrumb(

Callers 2

_is_processing_completeFunction · 0.90
check_cached_downloadFunction · 0.85

Calls 2

read_breadcrumbFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected