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

Function collect_path

ci/lint_cpp_rs/src/lib.rs:1710–1718  ·  view source on GitHub ↗
(path: &Path, files: &mut BTreeSet<PathBuf>, allow_any_file: bool)

Source from the content-addressed store, hash-verified

1708}
1709
1710fn collect_path(path: &Path, files: &mut BTreeSet<PathBuf>, allow_any_file: bool) {
1711 if path.is_dir() {
1712 collect_directory_files(path, files);
1713 } else if path.is_file()
1714 && (allow_any_file || is_cpp_like_path(&normalize_path(&path_to_string(path))))
1715 {
1716 files.insert(path.to_path_buf());
1717 }
1718}
1719
1720fn collect_directory_files(root: &Path, files: &mut BTreeSet<PathBuf>) {
1721 for entry in WalkDir::new(root)

Callers 1

collect_input_filesFunction · 0.85

Calls 5

collect_directory_filesFunction · 0.85
is_cpp_like_pathFunction · 0.85
path_to_stringFunction · 0.85
normalize_pathFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected