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.
load_zip_directory :: (
zip_filename: string,
close_file := true
) -> (success: bool, dir: Zip_Directory)
Parameters
- zip_filename: string
- close_file := true
Returns
- success: bool
- dir: Zip_Directory