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

Function extract_parent

atomic-core/src/record/workflow/globalize/helpers.rs:198–203  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

196/// ```
197#[must_use]
198pub fn extract_parent(path: &str) -> &str {
199 std::path::Path::new(path)
200 .parent()
201 .and_then(|p| p.to_str())
202 .unwrap_or("")
203}
204
205/// Return all non-root ancestor directories in parent-first order.
206///

Callers 7

compileMethod · 0.85
build_graph_first_changeFunction · 0.85
file_move_from_claimMethod · 0.85
globalize_recorded_fileFunction · 0.85
build_directory_deleteFunction · 0.85
ancestor_directoriesFunction · 0.85

Calls 1

parentMethod · 0.80

Tested by

no test coverage detected