Skip to main content

artifact_path

Function artifact_path 

Source
pub fn artifact_path(file: &str) -> Option<String>
Expand description

Where an artifact recorded under file is stored, relative to the bundle or run directory: artifacts/<file>.

The name comes from a transcript, which is untrusted input: a name that is not a single safe path component yields None, so a crafted transcript cannot point a reader at files outside the artifacts directory.