Re: [Vala] libgpgme and tar



Am Mittwoch, den 02.12.2009, 03:29 -0700 schrieb Mark Dewey:
Also, are there any libraries for Vala that deal with tar files? I know
Python has some that worked great (simply called tar—they took care of
gzip files, too).
I am working on bindings for libarchive, which allows you to read a
number of archive formats and create archives, its website is:
  http://code.google.com/p/libarchive/

Quoting the website:

Filter Support
----------------
Starting with libarchive 2.6, there is now support for multiple filters
when reading archives. This is not of much practical use yet (it is
rarely helpful to bzip2 a file that has already been gzipped), but will
allow a future version of libarchive to automatically support tar.gz.uu
and similar combinations.

      * gzip (read and write, uses zlib)
      * bzip2 (read and write, uses bzlib)
      * compress (read and write, uses an internal implementation)
      * separate command-line compressors with fixed-signature
        auto-detection
      * xz and lzma (read and write using liblzma)
      * lzma (if you lack liblzma, you can get read-only lzma support
        through the lzmadec library; this will likely be dropped as soon
        as liblzma is stable and widely-available)
      * Starting with libarchive 2.7, most of the above will fall back
        to using command-line tools if the libraries were unavailable at
        build time. Note that the command-line tools are usually slower
        than using the libraries directly.
Archive Formats Supported
--------------------------
      * tar (read and write, including GNU extensions)
      * pax (read and write, including GNU and star extensions)
      * cpio (read and write, including odc and newc variants)
      * ISO9660 (read only, with some limitations)
      * Zip (read only, with some limitations, uses zlib; write support
        starting with libarchive 2.8)
      * mtree (read and write)
      * shar (write only)
      * ar (read and write, including BSD and GNU/SysV variants)
      * empty (read only; in particular, note that no other format will
        accept an empty file)
      * raw (read only, starting in libarchive 2.8)

I guess that this will be more than enough for you.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]