Skip to main content

Module pbo

Module pbo 

Source
Expand description

PBO archive packing, unpacking and inspection.

Structs§

EntryFilter
Selects PBO entries by glob pattern: an entry passes when it matches at least one only pattern (or only is empty) and no exclude pattern.
EntryHeader
What a PBO’s header says about one entry.
PBO
PBO file
PackOptions
What PBO::from_directory does with a folder.
PboSelection
The entries of a PBO that PBO::read_entries selected.
SelectedEntry
An entry name with its decompressed data, or the reason it cannot be read.
TolerantRead
The bounds of PBO::read_entries_tolerant.
UnpackOptions
How unpack treats existing files and the PBO prefix.

Functions§

atomic_temp_prefix
The file-name prefix of the temp files written next to the target name before 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§

HeaderSummary
The header extensions as (key, value) pairs and the entry names, both in file order.