Expand description
Reading a payload tree, and refusing one that is not a payload tree.
Everything here walks with symlink_metadata, never metadata. Following a link while deciding
what an entry is would let a link to a directory be walked into as a directory, which is the
exact confusion the link rules exist to remove.
Functions§
- collect_
entries - Lists payload entries in the stable order hashing and archive creation use.
- collect_
files - Every path in a payload that resolves to content: regular files and the links to them.
- payload_
size - Logical size of a payload.
- sha256_
file - Lowercase hex SHA-256 of a file’s bytes, streamed rather than buffered.
- validate_
extracted_ tree - Re-applies the payload rules to a tree that has just been written.