admin管理员组文章数量:1122832
Does anyone know whether it would be possible to read a zip inside another zip?
For example:
helloworld.zip
+ test1.zip
+ test2.zip
+ ...
bool open_inner(
struct archive_entry *entry,
struct archive *parent)
{
struct archive *a = archive_read_new();
int rc = archive_read_open_memory(a,
// what to pass?
archive_entry_size(entry));
if (rc == ARCHIVE_OK)
{
// do stuff with inner zip
archive_read_free(a);
return true;
}
archive_read_free(a);
return false;
}
There is no examples from GitHub on how to use archive_read_open_memory
with inner archive... not even sure if that's not even possible. Could someone give me some hint?
本文标签: gzipHow to read an inner zip within a zip using libarchiveStack Overflow
版权声明:本文标题:gzip - How to read an inner zip within a zip using libarchive? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307376a1933289.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论