0.13.68 Library - ZIP Access - Transparently - SDLrwops Example - ext/io Customization xor/io Obfuscation zip/no Encryption (2) - Library API basics extras =Parsing ZIPs - 64on32 extras - Next To Come fseeko mmapped memdisk - Config Helpers - Making a zip/exe =Hints And Links - Referentials - Functions List.. - zziplib.* - zzipmmapped.* - zzipfseeko.* - unix man pages   faq notes zip-php Download Area Developer Area GitHub Project Old SF Project zziplib.sf.net Home ChangeLog LGPL/MPL license -sitemap-
generated 2018-02-05
formatted by mksite.sh as xml: Library - 64on32 extras - Next To Come |
Now hosted on github.com/gdraheim/zziplib
The Typedef
The typedef
As long as the filename path given to
Any subsequent calls to
The real benefit of the
zziplib library
comes about when the filename argument does actually refer
to a file that is zipped in a zip-archive. It happens that
even both a real file and a zipped file can live under the
same pathname given to the Zipped File
Suppose you have subdirectory called 'test/'. In
this directory is just one file, called 'README'.
Calling the
Now you can go to the 'test/' directory and zip up
the files in there by calling
Calling Zip Directory
The same applies to the use of
To call
If a real directory 'test' does not exist, then the
DifferencesThere are no differences between the posix calls and their counterparts from the zziplib library - well, just as long as the zip-file contains just the plain files from a directory.
If the zip-file contains directory entries you may be prompted with
some awkward behaviour, since in zip-file a directory happens to be
just an empty file. Note that the posix function What the current of version of the zziplib library can definitely not do: calling zzip_opendir on a directory zippend inside a zip-file.
To prevent the enrollment of directories into the zip-archive, you
can use the -D option of the zip program. That
is in any Makefile you may want to use
AdvantagesDistribution of a set of files is much easier if it just means to wrap up a group of files into a zip-archive - and copy that zip-archive to the respective destination directory. Even more the files can be compressed and unlike a tar.gz archive there is no need to decompress the archive in temporary location before accessing a member-file.
On the other hand, there is no chance to scatter files around
on the disk like it could easily happen with a set of gzip'ed
man-pages in a single `man`-directory. The reader
application does not specifically need to know that the file
is compressed, so that reading a script like
`share/guile/x.x.x/ice-9/popen.scm` is done by simple
calls to A version mismatch between different files in a group is now obvious: either the opened file belongs to the distribution archive, or otherwise in resides in a real directory just next to the zip-archive that contains the original. Issues
The zziplib library does not
use any code piece from the The only issue you have with the zziplib library is the fact that you can only read the contained files. Writing/Compression is not implemented. Even more, a compressed file is not seekable at the moment although I hope that someone will stand up to implement that functionality someday.
|