MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / path_parent

Function path_parent

src/storage.rs:596–598  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

594}
595
596fn path_parent(path: &Path) -> &Path {
597 path.parent().unwrap_or_else(|| Path::new(""))
598}
599
600fn relative_to_data_root(path: &Path, data_root: &Path) -> PathBuf {
601 path.strip_prefix(data_root).unwrap_or(path).to_path_buf()

Callers 1

write_file_atomicallyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected