Skip to main content

normalize_base_path

Function normalize_base_path 

Source
pub fn normalize_base_path(value: &str) -> Option<String>
Expand description

Normalizes an app-relative base path without allowing traversal.

§Parameters

§Returns

Returns Some when crate::runtime::ops_bridge::normalize_base_path can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::ops_bridge::normalize_base_path.

§Examples

ⓘ
let _result = pharos_native::runtime::ops_bridge::normalize_base_path("value");