Skip to main content

path_exists

Function path_exists 

Source
pub fn path_exists(path: &str) -> bool
Expand description

Checks whether a path exists without following user-controlled commands.

§Parameters

§Returns

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

§Examples

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