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

Method matches_prefix

atomic-core/src/record/detect.rs:261–267  ·  view source on GitHub ↗

Check if a path matches the prefix filter.

(&self, path: &str)

Source from the content-addressed store, hash-verified

259
260 /// Check if a path matches the prefix filter.
261 pub fn matches_prefix(&self, path: &str) -> bool {
262 if self.prefix.is_empty() {
263 true
264 } else {
265 path.starts_with(&self.prefix)
266 }
267 }
268}
269
270impl Default for DetectOptions {

Callers 1

materialize_parallelMethod · 0.45

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected