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

Method should_include

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

Source from the content-addressed store, hash-verified

500 /// Check if a path should be included based on the configured paths filter.
501 #[must_use]
502 pub fn should_include(&self, path: &str) -> bool {
503 if self.all || self.paths.is_empty() {
504 return true;
505 }
506 self.paths
507 .iter()
508 .any(|p| path == p || path.starts_with(&format!("{}/", p)))
509 }
510
511 /// Convert to core recording options.
512 #[must_use]

Callers 3

filter_filesFunction · 0.45
archiveMethod · 0.45
record_with_lifecycleMethod · 0.45

Calls 2

is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected