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

Method should_include

atomic-repository/src/record/options.rs:375–382  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

373 /// Check if a path should be included based on the configured paths filter.
374 #[must_use]
375 pub fn should_include(&self, path: &str) -> bool {
376 if self.all || self.paths.is_empty() {
377 return true;
378 }
379 self.paths
380 .iter()
381 .any(|p| path == p || path.starts_with(&format!("{}/", p)))
382 }
383
384 /// Convert to core recording options.
385 #[must_use]

Callers 2

filter_filesFunction · 0.45
archiveMethod · 0.45

Calls 2

is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected