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

Function directory_bucket

atomic-repository/src/content_search.rs:343–345  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

341}
342
343fn directory_bucket(path: &str) -> String {
344 path.splitn(3, '/').take(2).collect::<Vec<_>>().join("/")
345}
346
347fn directory_facets(counts: impl IntoIterator<Item = (String, usize)>) -> Vec<(String, usize)> {
348 let mut facets: Vec<_> = counts.into_iter().collect();

Callers 2

runMethod · 0.85
rank_content_matchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected