Closed ajpfahnl closed 1 year ago
Thanks for the detailed analysis of the issue. It always helps to have a detailed description and a code sample to reproduce the issue. I am looking into this issue.
Fixed in v2.11.4 released today
Thank you for working on this!
Toy example:
I created one directory with a symlink to it and a regular file with a symlink to it like so:
Ideally what would happen is the following:
I then attempted to use Zip4j to zip these files.
First attempt is a naive approach. Just
setSymbolicLinkAction
toINCLUDE_LINK_ONLY
:Let's see what it contains:
That didn't work. The symlink
b
to directorya
, did not stay a symlink.Then I tried only setting
INCLUDE_LINK_ONLY
for paths tested to be symlinks, and manually setCompressionLevel.NO_COMPRESSION
andCompressionMethod.STORE
.Unzipping output:
It still won't link
b
toa
!