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

Method should_include

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

Source from the content-addressed store, hash-verified

394 /// Check if a path should be included based on the configured paths filter.
395 #[must_use]
396 pub fn should_include(&self, path: &str) -> bool {
397 if self.all || self.paths.is_empty() {
398 return true;
399 }
400 self.paths
401 .iter()
402 .any(|p| path == p || path.starts_with(&format!("{}/", p)))
403 }
404
405 /// Convert to core recording options.
406 #[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