Skip to content

fix: apply rename function to compression-only formats (fixes #31) - #35

Open
AruneshDwivedi wants to merge 1 commit into
codeclysm:masterfrom
AruneshDwivedi:extract-issue-31-fix
Open

fix: apply rename function to compression-only formats (fixes #31)#35
AruneshDwivedi wants to merge 1 commit into
codeclysm:masterfrom
AruneshDwivedi:extract-issue-31-fix

Conversation

@AruneshDwivedi

Copy link
Copy Markdown

Fixes issue #31: Rename function not called for compression-only formats

Previously, the rename function was only applied when extracting tar archives (.tar, .tar.gz, .tar.bz2, etc.). For compression-only formats (.gz, .bz2, .xz, .zst), the location parameter was not passed through the rename function, making it impossible to rename output files when using these formats directly.

This fix adds rename callback application to all compression-only extraction functions (Gz, Bz2, Xz, Zstd), making the behavior consistent with tar extraction and allowing users to rename output files for all archive types.

Test suite passes with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant