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

Function _discover_files_in_dir

ci/meson/test_discovery.py:221–231  ·  view source on GitHub ↗

Discover .cpp/.h/.hpp files under source_dir/subdir, return sorted relative paths.

(source_dir: Path, subdir: str)

Source from the content-addressed store, hash-verified

219
220
221def _discover_files_in_dir(source_dir: Path, subdir: str) -> list[str]:
222 """Discover .cpp/.h/.hpp files under source_dir/subdir, return sorted relative paths."""
223 dir_path = source_dir / subdir
224 if not dir_path.exists():
225 return []
226 files = sorted(
227 str(p.relative_to(source_dir))
228 for p in dir_path.rglob("*")
229 if p.suffix in _SOURCE_EXTENSIONS and p.is_file()
230 )
231 return files
232
233
234def get_source_files_hash(source_dir: Path) -> tuple[str, list[str]]:

Callers 2

get_source_files_hashFunction · 0.85
get_split_source_hashesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected