Skip to main content

safe_existing_artifact_path

Function safe_existing_artifact_path 

Source
pub fn safe_existing_artifact_path(
    root: &Path,
    relative: &str,
) -> Option<PathBuf>
Expand description

Resolves a relative artifact path and proves it remains under the artifact root.

§Parameters

§Returns

Returns Some when crate::safe_existing_artifact_path can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_runtime_core::safe_existing_artifact_path(std::path::Path::new("."), todo!());
  • crate for adjacent helpers that share the same runtime surface.