Expand description
PBO archive packing, unpacking and inspection.
Structs§
- Entry
Filter - Selects PBO entries by glob pattern: an entry passes when it matches at least one
onlypattern (oronlyis empty) and noexcludepattern. - Entry
Header - What a PBO’s header says about one entry.
- PBO
- PBO file
- Pack
Options - What
PBO::from_directorydoes with a folder. - PboSelection
- The entries of a PBO that
PBO::read_entriesselected. - Selected
Entry - An entry name with its decompressed data, or the reason it cannot be read.
- Tolerant
Read - The bounds of
PBO::read_entries_tolerant. - Unpack
Options - How
unpacktreats existing files and the PBO prefix.
Functions§
- atomic_
temp_ prefix - The file-name prefix of the temp files written next to the target
namebefore they are renamed into place (.<name>.dayzmake-tmp-<pid>-<n>); a build leaves them out of the PBO. - is_
device_ name - Whether a path component names a Windows device (
CON,NUL.txt,COM1,COM\u{b9},LPT0,CONIN$, …), which Windows opens instead of a file whatever the extension and case. - safe_
relative_ path - Maps an untrusted PBO entry name or prefix to a relative path that cannot leave the folder it is joined to.
- unpack
- Unpacks a PBO into the target folder.
Type Aliases§
- Header
Summary - The header extensions as
(key, value)pairs and the entry names, both in file order.