Skip to main content

validate_extracted_tree

Function validate_extracted_tree 

Source
pub fn validate_extracted_tree(root: &Path, allow_links: bool) -> Result<()>
Expand description

Re-applies the payload rules to a tree that has just been written.

Validating the archive before extraction says what should have been written; this says what is actually on disk. They are different questions, and only the second one accounts for a filesystem that resolved two entry names to one path.

ยงErrors

When the tree holds a special entry, or a link the contract does not permit.