Skip to main content

ensure_directory

Function ensure_directory 

Source
pub fn ensure_directory(path: &Path) -> i32
Expand description

Ensures directory.

§Parameters

§Returns

Returns the computed value produced by crate::fs::ensure_directory.

§Examples

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