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

Method prefix

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

Set the prefix filter. # Arguments `prefix` - Path prefix to filter # Example ```rust use atomic_core::output::repo::TreeCollectOptions; let opts = TreeCollectOptions::new().prefix("src/"); assert_eq!(opts.prefix, "src/"); ```

(mut self, prefix: impl Into<String>)

Source from the content-addressed store, hash-verified

170 /// assert_eq!(opts.prefix, "src/");
171 /// ```
172 pub fn prefix(mut self, prefix: impl Into<String>) -> Self {
173 self.prefix = prefix.into();
174 self
175 }
176
177 /// Set whether to include hidden files.
178 ///

Callers 7

collect_filesFunction · 0.45
collect_directoriesFunction · 0.45
test_options_prefixFunction · 0.45
test_options_chainingFunction · 0.45
test_options_cloneFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_options_prefixFunction · 0.36
test_options_chainingFunction · 0.36
test_options_cloneFunction · 0.36