otp icon indicating copy to clipboard operation
otp copied to clipboard

make zip expose extra fields (for file permissions)

Open aymanosman opened this issue 1 year ago • 3 comments

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.

aymanosman avatar Mar 01 '24 06:03 aymanosman

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.

bjorng avatar Mar 12 '24 06:03 bjorng

Thanks. I appreciate the work you are doing.

aymanosman avatar Mar 12 '24 08:03 aymanosman

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.

bjorng avatar Jun 03 '24 12:06 bjorng

Closing as the Zip64 and file attribute things were released in 27.1

garazdawi avatar May 23 '25 12:05 garazdawi