Skip to main content

decide

Function decide 

Source
pub fn decide(
    target: &Held,
    recorded: Option<&Manifest>,
    projection: &Projection,
) -> Result<(Vec<Decision>, Vec<Collision>), RkError>
Expand description

Decide every destination from the receipt and the disk, collecting every collision rather than stopping at the first.

Every existing parent component of a candidate is walked relative to the held target directory with no link followed, so a linked or non-directory component is a collision here, before any write, and not a failure after the configuration landed.

ยงErrors

A read failure other than absence.