NAME
libzip — library for manipulating zip archives
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
DESCRIPTION
libzip is a library for reading, creating, and modifying zip archives.
The main design criteria for libzip were:
•
Do not create corrupt files, even in case of errors.
•
Do not delete data.
•
Be efficient.
For this reason, when modifying zip archives, libzip writes to a temporary file and replaces the original zip archive atomically.
Below there are two sections listing functions: one for how to read from zip archives and one for how to create/modify them.
READING ZIP ARCHIVES
open archive
•
•
find files
•
read files
•
•
•
•
•
•
zip_fseek(3) (uncompressed files only)
•
zip_ftell(3) (uncompressed files only)
•
close archive
•
miscellaneous
•
•
zip_compression_method_supported(3)
•
zip_encryption_method_supported(3)
•
•
zip_file_get_external_attributes(3)
•
•
•
•
•
CREATING/MODIFYING ZIP ARCHIVES
create/open archive
•
add/change files and directories
•
•
•
•
•
•
zip_file_set_external_attributes(3)
•
•
•
•
•
•
•
•
•
rename files
•
delete files
•
revert changes
•
•
•
read/modify extra fields
•
•
zip_file_extra_field_delete(3)
•
zip_file_extra_field_delete_by_id(3)
•
•
•
zip_file_extra_fields_count(3)
•
zip_file_extra_fields_count_by_id(3)
close archive (writing)
•
•
miscellaneous (writing)
•
•
•
zip_register_progress_callback_with_state(3)
•
•
•
ERROR HANDLING
•
•
•
•
•
•
•
AUTHORS
Dieter Baron <dillo [AT] nih.at> and Thomas Klausner <tk [AT] giga.at>
BSD April 17, 2020 BSD