thrau / jarchivelib

A simple archiving and compression library for Java
https://github.com/thrau/jarchivelib
Apache License 2.0
199 stars 36 forks source link

Support cutting relative top level directory when extracting files from archive #58

Open abarsov opened 7 years ago

abarsov commented 7 years ago

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

thrau commented 7 years ago

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

abarsov commented 7 years ago

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