libzip: libzip-discuss: Re: libzip and file attributes

Thread

Thread Index

  • libzip and file attributes, Martin Schobert (2009/12/17 02:52:47)
    • Re: libzip and file attributes, Thomas Klausner (2010/02/09 14:20:46)

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Martin Schobert <martin%weltregierung.de@localhost>
Subject: Re: libzip and file attributes
Date: Tue, 9 Feb 2010 15:20:46 +0100

Hi Martin!

>  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?

Currently there is no way to query or set the file attributes in zip
files using libzip.

The commit you linked to is not specifically for file attribute
support.

If we develop libzip long enough, we'll eventually support file
attributes as well, but not in the near future.

Cheers,
 Thomas

Made by MHonArc.