MCPcopy Create free account
hub / github.com/AI45Lab/Code / file_stem

Function file_stem

core/src/config/agent_dir.rs:364–369  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

362}
363
364fn file_stem(path: &Path) -> String {
365 path.file_stem()
366 .and_then(|s| s.to_str())
367 .unwrap_or("unnamed")
368 .to_string()
369}
370
371/// Split a leading `---\n…\n---` YAML frontmatter block from the markdown body.
372/// Returns `(None, whole)` when there is no frontmatter.

Callers 2

load_schedulesFunction · 0.85
load_toolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected