pub fn survey(resolved: Resolved, target: &Target) -> Result<Survey>Expand description
Compares target’s files with resolved, and settles the gates that depend on them: each
scaffold, and each exists.
A part is read out of its file: the keys its base and the profile define, or its block.
§Errors
TargetError::NotAFile, a managed path on disk is a symlink or a directory.TargetError::NoSuchScaffold, a scaffold to write again is no active profile’s.Error::Parse, a file with parts does not parse, or a block’s markers do not pair.Error::Io, a managed file cannot be read.