(dir: *Zip_Directory)
Frees the directory's name, entries and memory (not the file, if one is still open).
#import "Zip_File_Directory";
Frees the directory's name, entries and memory (not the file, if one is still open).
Reads the central directory of a zip file. Returns false when the file cannot be opened or is not
a classic zip (zip64 archives and entries with a trailing data descriptor are refused). Call
deinit on the result. The file is closed afterwards unless close_file is false.
ok, dir := load_zip_directory("assets.zip");
if ok {
defer deinit(*dir);
for dir.entries print("%\n", it.filename);
}↗This one is only checked to compile, not run.
One file in a zip archive, as its central directory describes it. Most fields are the zip
format's own; filename points into the directory's memory_block.
The list of files in a zip archive, read without extracting anything.