Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in 'unpack' for compressed archives with names not ending in '.archive' #58

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

pjbriggs
Copy link
Member

Fixes a bug with the unpack method of the ArchiveDirectory class, when the compressed archive directory name doesn't end with the standard .archive extension (e.g. example.archive.tmp rather than example.archive).

In these cases an additional empty directory is created in parallel with the expected unpacked directory, with a name generated by dropping the last 7 characters of the archive directory name (e.g. for example.archive.tmp it would be example.arc).

By extension the bug also affected the unpack command (which calls the unpack method directly).

The fix prevents the spurious directory being created.

@pjbriggs pjbriggs added the bug Something isn't working label Dec 13, 2024
@pjbriggs pjbriggs merged commit 8a6bb70 into master Dec 13, 2024
10 checks passed
@pjbriggs pjbriggs deleted the fix-unpack-non-standard-archive-name branch December 13, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant