Skip to main content

collect_entries

Function collect_entries 

Source
pub fn collect_entries(root: &Path) -> Result<Vec<PayloadEntry>>
Expand description

Lists payload entries in the stable order hashing and archive creation use.

A payload may hold regular files and the narrow class of links the contract permits; anything else — a socket, a device, a fifo — is refused, because nothing that is not one of those two things can be archived, hashed or relocated meaningfully.

§Errors

When the tree cannot be read, or holds an entry that is neither a file nor a link.