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

Function _compute_dir_hash

ci/esbuild_frontend.py:111–116  ·  view source on GitHub ↗
(directory: Path)

Source from the content-addressed store, hash-verified

109
110
111def _compute_dir_hash(directory: Path) -> str:
112 digest = hashlib.md5(usedforsecurity=False)
113 for file_path in sorted(p for p in directory.rglob("*") if p.is_file()):
114 digest.update(str(file_path.relative_to(directory)).encode("utf-8"))
115 digest.update(file_path.read_bytes())
116 return digest.hexdigest()
117
118
119def _has_required_static_dist_assets(dist_dir: Path) -> bool:

Callers 1

copy_dist_to_outputFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected