Skip to main content

path_is_directory

Function path_is_directory 

Source
pub fn path_is_directory(path: &Path) -> bool
Expand description

Returns whether a path currently identifies a directory.

§Parameters

§Returns

Returns true when the condition checked by crate::platform::path_is_directory holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::platform::path_is_directory(std::path::Path::new("fixture.json"));
  • crate::platform for adjacent helpers that share the same runtime surface.