jarchivelib icon indicating copy to clipboard operation
jarchivelib copied to clipboard

Support cutting relative top level directory when extracting files from archive

Open abarsov opened this issue 8 years ago • 2 comments

This is mostly about signature of overloaded extract methods. Those might declare additional parameter with relative path that should be cut off while extracting. unzip

abarsov avatar Sep 20 '17 13:09 abarsov

could you provide a unzip or tar command that does this? this helps me think about how to extend the api.

thrau avatar Sep 21 '17 11:09 thrau

There is a similar option for tar --strip-components. Though it simply cut top level directories.

abarsov avatar Sep 21 '17 12:09 abarsov