Skip to main content

collect_files

Function collect_files 

Source
pub fn collect_files(root: &Path) -> Result<BTreeSet<String>>
Expand description

Every path in a payload that resolves to content: regular files and the links to them.

A link is included deliberately. A real box reaches its interpreter through exactly that shape — venv/bin/python links to the versioned binary beside it — so a check that accepted only regular files here would reject every box the builder produces on macOS and Linux. The archive side asks the same question of the same set; only reading box.json needs an entry with its own bytes.

§Errors

See collect_entries.