pub fn operations_for(
target: &Utf8Path,
files: &[(Utf8PathBuf, Vec<u8>)],
declaration: &Declaration,
profile: ProfileId,
recorded_managed: &[(String, Sha256)],
) -> Result<Derived, AppError>Expand description
Every write one target state implies, and the bytes each one lands.
A destination that already holds the bytes is not an operation: a plan that listed it would tell an operator something would change when nothing would.
ยงErrors
AppError::Refused for a destination no operation may name, and I/O
errors reading what the target holds now.