erlang / otp

Erlang/OTP
http://erlang.org
Apache License 2.0
11.27k stars 2.93k forks source link

make zip expose extra fields (for file permissions) #8210

Open aymanosman opened 6 months ago

aymanosman commented 6 months ago

Is your feature request related to a problem? Please describe.

I want to unzip an archive containing a set of files and preserve their attributes, such as file permissions and whether they are symlinks.

Describe the solution you'd like

The existing functions that extract zip entries should produce correct file_info records, that preserve these file attributes.

Describe alternatives you've considered

Use the unzip command line program to do the job.

Additional context

I understand that these extra operating system specific file attributes are non-standard and should probably be ignored by default. But it would be good to get access to them somehow.

bjorng commented 5 months ago

After the first release candidate, we generally focus on bug fixes and polishing of features already included or planned for the release. To ensure that Erlang/OTP 27 will be as good as it possibly can be, we need to minimize the time we spend on things not to be included in the release. Therefore, we will not review this feature request until after OTP 27 has been released. If we have not came back to it before September, feel free to remind us.

aymanosman commented 5 months ago

Thanks. I appreciate the work you are doing.

bjorng commented 2 months ago

This pull request #8537, whose primary purpose is support for Zip64, implements parts of what you need. We are not really planning to do any more, but we are open for pull requests to extend the functionality.