zip_util问题 [英] zip_util question

查看:103
本文介绍了zip_util问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Lucian

我正在尝试集成您的zip_util api,但是遇到了一些问题-可能是由于我正在处理奇怪的zip文件.
我正在使用您提供的修改后的代码示例将一个zip文件的内容复制到另一个zip文件.
不幸的是,文件属性无法正确识别,因此目录没有在GetZipItem()上设置适当的标志.实际上,对于我在存档中找到的所有文件,这些标志似乎始终为零.
我为第一个问题(目录是路径以/或\结尾)建立了一个肮脏的修复程序,只是为了解决下一个问题.看来我的zip归档文件包含大小为0的文件,这导致api中出现ZR_FLATE错误.
我正在处理的存档文件是一个ods文件-我是通过创建一个空的Open Office Calc电子表格来生成的,ods是他保存的电子表格,它实际上是一个zip存档.
您有什么主意我可以解决这些问题吗?

干杯Thomas`

Hi Lucian,

I am trying to integrate your zip_util api but ran into some problems - possibly due to the weird zip-files I am processing.
I am using a modified code sample you supplied to copy the contents of a zip file to another zip file.
Unfortunately the file attributes are not recognized correctly so that directories do not have the appropriate flag set on GetZipItem() . In fact it seems that the flags are always zero for all files I find in the archive.
I built a dirty fix for the first problem (directory is when a path ends with / or \) just to run into the next problem. It seems that my zip-archive contains files with size 0 which leads to an error ZR_FLATE from your api.
The archive file I am processing is an ods file - I produced it by creating an empty Open Office Calc spreadsheet, the ods is he saved spreadsheet which is actually a zip archive.
Have you got any ideas how I can get past these problems ?

Cheers Thomas`

推荐答案

您似乎想向与其文章相关的作者问这个问题.

我建议您使用本文结尾处的论坛,以联系作者并快速获得答复.很少您会找到阅读此论坛的作者.

请在文章的消息论坛中发布相同的内容.
It looks like you want to ask this question to an author related to his/her article.

I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum.

Please post the same at the article''s message forum.


这篇关于zip_util问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆