Skip to main content

canonical_project_pack

Function canonical_project_pack 

Source
pub fn canonical_project_pack(
    project_root: &Path,
    candidate: &Path,
) -> Result<PathBuf, String>
Expand description

Resolve a regular compiled pack without crossing a symlink outside a trusted project.

ยงErrors

Returns an error when either path cannot be resolved or any component is unsafe.