pub fn path_dirname(path: &str) -> Option<String>Expand description
Returns a path’s parent component as owned text.
§Parameters
path: Input consumed bycrate::platform::path_dirname.
§Returns
Returns Some when crate::platform::path_dirname can produce a value and None otherwise.
§Examples
ⓘ
let _result = pharos_native::platform::path_dirname(std::path::Path::new("fixture.json"));§Related
crate::platformfor adjacent helpers that share the same runtime surface.