Skip to main content

path_has_parent_reference

Function path_has_parent_reference 

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

Returns whether a request path contains a parent-directory component.

§Parameters

§Returns

Returns true when the condition checked by crate::artifact_server::path_has_parent_reference holds and false otherwise.

§Performance

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

§Examples

ⓘ
let _result = pharos_runtime_static::artifact_server::path_has_parent_reference(std::path::Path::new("fixture.json"));