pub fn digest(folder: &Path) -> Result<(String, Vec<HookFile>), String>Expand description
The digest of the files of the extension in folder, and each file’s
own, sorted. In a git checkout these are the files git tracks there —
what a run’s worktree holds, so trust and runs see the same bytes;
elsewhere (a folder being added) every file.
§Errors
The folder or anything in it is a link, something in it is not a regular file, it holds more than 2,000 files or 20 MB, or — in a git checkout — files not committed or ignored by git sit in it (they would run without being what was trusted).