Skip to main content

path_dirname

Function path_dirname 

Source
pub fn path_dirname(path: &str) -> Option<String>
Expand description

Returns a path’s parent component as owned text.

§Parameters

§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"));
  • crate::platform for adjacent helpers that share the same runtime surface.