Skip to main content

Module filesystem

Module filesystem 

Source
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.