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

Function get_cache_artifact_dir

ci/util/download_breadcrumb.py:170–182  ·  view source on GitHub ↗

Get the directory where an artifact for a URL should be cached. Args: cache_dir: Base cache directory url: URL being cached Returns: Path to the artifact directory

(cache_dir: Path, url: str)

Source from the content-addressed store, hash-verified

168
169
170def get_cache_artifact_dir(cache_dir: Path, url: str) -> Path:
171 """
172 Get the directory where an artifact for a URL should be cached.
173
174 Args:
175 cache_dir: Base cache directory
176 url: URL being cached
177
178 Returns:
179 Path to the artifact directory
180 """
181 cache_key = str(sanitize_url_for_path(url))
182 return cache_dir / cache_key
183
184
185def check_cached_download(

Callers 2

download_toolchainFunction · 0.90
check_cached_downloadFunction · 0.85

Calls 1

sanitize_url_for_pathFunction · 0.90

Tested by

no test coverage detected