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

Function _resolve_file

ci/autoresearch/decode.py:119–130  ·  view source on GitHub ↗

Resolve decode_path to a ResolvedFile with file_path, extension, and optional temp path.

(decode_path: str)

Source from the content-addressed store, hash-verified

117
118
119def _resolve_file(decode_path: str) -> ResolvedFile:
120 """Resolve decode_path to a ResolvedFile with file_path, extension, and optional temp path."""
121 temp_download: str | None = None
122 if _is_url(decode_path):
123 file_path, ext = _download_to_temp(decode_path)
124 temp_download = file_path
125 else:
126 file_path = str(Path(decode_path).resolve())
127 ext = _get_extension(file_path)
128 return ResolvedFile(
129 file_path=file_path, extension=ext, temp_download_path=temp_download
130 )
131
132
133def _print_pixel_table(pixels: list[list[int]]) -> None:

Callers 2

run_decode_autoresearchFunction · 0.85

Calls 5

_is_urlFunction · 0.85
_download_to_tempFunction · 0.85
_get_extensionFunction · 0.85
ResolvedFileClass · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected