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

Method should_include

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

Source from the content-addressed store, hash-verified

414 /// Check if a path should be included based on the configured paths filter.
415 #[must_use]
416 pub fn should_include(&self, path: &str) -> bool {
417 if self.all || self.paths.is_empty() {
418 return true;
419 }
420 self.paths
421 .iter()
422 .any(|p| path == p || path.starts_with(&format!("{}/", p)))
423 }
424
425 /// Convert to core recording options.
426 #[must_use]

Callers 3

filter_filesFunction · 0.45
archiveMethod · 0.45
recordMethod · 0.45

Calls 2

is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected