Skip to main content

validate_entry_set

Function validate_entry_set 

Source
pub fn validate_entry_set<'a, I>(names: I) -> Result<(), MdzError>
where I: IntoIterator<Item = &'a str>,
Expand description

Check that a set of entry names can form one archive (Section 5.4).

Names ending in / are directory entries. Two names equal after NFC are duplicates (ErrorCode::DuplicatePath); a file whose path is also a directory of another entry is a conflict (ErrorCode::PathConflict).