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

Function stem

atomic-repository/src/repository/vault_projection.rs:25–31  ·  view source on GitHub ↗
(path: &str, prefix: &str)

Source from the content-addressed store, hash-verified

23}
24
25fn stem(path: &str, prefix: &str) -> String {
26 path.strip_prefix(prefix)
27 .unwrap_or(path)
28 .strip_suffix(".md")
29 .unwrap_or(path.strip_prefix(prefix).unwrap_or(path))
30 .to_owned()
31}
32
33impl VaultProjection {
34 pub(super) fn new(

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected