vincexjl commented on PR #602:
URL: https://github.com/apache/commons-compress/pull/602#issuecomment-2461427956
@ppkarwasz
hello, I think I might share with you a scenario we encountered.
In your example, If you compress a logfile log.1 to log.1.gz and then rename
it to log.2.gz, the uncompressed file name is not renamed.
In some cases, we use compress a logfile log.1 to log.1.gz and the rename it
to log.1.gz.20241107, Like adding a time information after .gz
In order to quickly query some logs.
some system use tools like 7zip or winrar, they dont rename
log.1.gz.20241107 to log.1.gz, Open this compressed file directly in this
scenario, the filename become log.1.gz
This is not what we want
but if we use GzipParameters .setFileName("log.1")
use like winrar or 7-zip open "log.1.gz.20241107" in this scenario, the
fileName still is "log.1"
This result is what we hope to achieve
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]