libzip: libzip-discuss: libzip and file attributes

Thread

Thread Index

Message

From: Martin Schobert <martin%weltregierung.de@localhost>
To: libzip-discuss%nih.at@localhost
Subject: libzip and file attributes
Date: Thu, 17 Dec 2009 03:52:45 +0100

Hello,

I implemented some code that adds files into a zip archive. Afterwards I noticed that libzip does not preserve file attributes. In my case the executable bit was ignored. I checked this under Ubuntu (libzip 0.8.X) and OSX (libzip 0.9). Is it correct that file attributes are not preserved due to the implementation of libzip or is there something I missed? I found no hint in the documentation, but I noticed [1] and [2].

So my questions are: Is the file attribute persistency really missing? Is the flag that was added to the zip_stat structure [2] for file attribute storage or for another purpose? And does [2] indicate, that this will be implemented?

[1] http://pdb.finkproject.org/pdb/package.php/fuse-zip
[2] http://hg.nih.at/libzip/?cs=55a7992a900a


Regards,

 Martin

Made by MHonArc.