Skip to main content

check

Function check 

Source
pub fn check(
    generation: &Generation,
    out_dir: &Path,
    options: &WriteOptions,
) -> Result<CheckReport, WriteError>
Expand description

Compare out_dir with what write() would leave there, without writing anything: file contents, owned paths and the manifest itself. It applies the same refusals as write() — error diagnostics without allow_partial, symbolic links, non-directories, paths another target owns, unowned files in the way — so a directory reported out of date is one a write could update.