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

Function _hash_file_list

ci/meson/test_discovery.py:212–218  ·  view source on GitHub ↗

Hash a sorted list of file paths into a hex digest.

(file_list: list[str])

Source from the content-addressed store, hash-verified

210
211
212def _hash_file_list(file_list: list[str]) -> str:
213 """Hash a sorted list of file paths into a hex digest."""
214 hasher = hashlib.sha256()
215 for file_path in file_list:
216 hasher.update(file_path.encode("utf-8"))
217 hasher.update(b"\n")
218 return hasher.hexdigest()
219
220
221def _discover_files_in_dir(source_dir: Path, subdir: str) -> list[str]:

Callers 2

get_source_files_hashFunction · 0.85
get_split_source_hashesFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected