libzip: libzip-discuss: Re: zipint.h missing in debian package

Thread

Thread Index

Message

From: Claudio_Unige <claudiounige%gmail.com@localhost>
To: Dieter Baron <dillo%danbala.tuwien.ac.at@localhost>
Subject: Re: zipint.h missing in debian package
Date: Thu, 17 Jun 2010 13:55:11 +0200

This implies that I wont be able to extract a file contained within another zip?

If the above would be possible I could just add my buffer (which is a zip) to the newly created struct zip and then rextract it and so on.

-Claudio

On Thu, Jun 17, 2010 at 1:46 PM, Dieter Baron <dillo%danbala.tuwien.ac.at@localhost> wrote:

> thanks everyone for the info I now understand, there is only one thing that I believe is missing, which is creating a struct zip without creating a file. My use case is I have a zip file in memory and not on the filesystem and I want to extract some files,

 You do realise that zip_source_buffer is for *adding* a file to a zip archive?  It cannot be used to open a zip archive from a memory buffer, nor can it be used to extract files from a zip archive.

 Reading zip archives from memory instead of the file system is indeed a missing feature, and one we will add, probably when we add the I/O abstraction layer.

yours,
dillo


Made by MHonArc.