MCPcopy Create free account
hub / github.com/HairlessVillager/minecommit / glob

Method glob

minecommit/src/handler/mod.rs:83–90  ·  view source on GitHub ↗
(&self, pattern: &str)

Source from the content-addressed store, hash-verified

81 }
82
83 fn glob(&self, pattern: &str) -> Result<Vec<String>> {
84 let prefixed_pattern = format!("{}/{}", self.prefix, pattern);
85 self.inner
86 .glob(&prefixed_pattern)?
87 .into_iter()
88 .map(|k| self.strip(&k).map(|s| s.to_string()))
89 .collect()
90 }
91}
92
93impl<W: OdbWriter> OdbWriter for PrefixedWriter<'_, W> {

Callers 12

flattenMethod · 0.45
unflattenMethod · 0.45
flattenMethod · 0.45
unflattenMethod · 0.45
flattenMethod · 0.45
unflattenMethod · 0.45
flattenMethod · 0.45
unflattenMethod · 0.45
flattenMethod · 0.45
unflattenMethod · 0.45
flattenMethod · 0.45
unflattenMethod · 0.45

Calls 1

stripMethod · 0.80

Tested by

no test coverage detected