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

Function recorded_path_order

atomic-repository/src/content_search.rs:339–341  ·  view source on GitHub ↗
(a: &str, b: &str)

Source from the content-addressed store, hash-verified

337}
338
339fn recorded_path_order(a: &str, b: &str) -> std::cmp::Ordering {
340 path_tier(a).cmp(&path_tier(b)).then_with(|| a.cmp(b))
341}
342
343fn directory_bucket(path: &str) -> String {
344 path.splitn(3, '/').take(2).collect::<Vec<_>>().join("/")

Callers 2

newMethod · 0.85
rank_content_matchesFunction · 0.85

Calls 2

path_tierFunction · 0.85
cmpMethod · 0.45

Tested by

no test coverage detected