MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / collect_files

Method collect_files

atomic-core/src/output/repo/tree.rs:248–251  ·  view source on GitHub ↗

Set whether to collect files. # Arguments `collect` - Whether to include files in results # Example ```rust use atomic_core::output::repo::TreeCollectOptions; let opts = TreeCollectOptions::new().collect_files(false); assert!(!opts.collect_files); ```

(mut self, collect: bool)

Source from the content-addressed store, hash-verified

246 /// assert!(!opts.collect_files);
247 /// ```
248 pub fn collect_files(mut self, collect: bool) -> Self {
249 self.collect_files = collect;
250 self
251 }
252
253 /// Add an exclude pattern.
254 ///

Callers 4

collect_directoriesFunction · 0.80
test_options_chainingFunction · 0.80
collect_childrenFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_options_chainingFunction · 0.64