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

Function recorded_path_order

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

Source from the content-addressed store, hash-verified

384}
385
386fn recorded_path_order(a: &str, b: &str) -> std::cmp::Ordering {
387 path_tier(a).cmp(&path_tier(b)).then_with(|| a.cmp(b))
388}
389
390fn directory_bucket(path: &str) -> String {
391 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