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 archiverFileSystem #207

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Linux123123
Copy link

@Linux123123 Linux123123 commented Dec 27, 2024

After 024fe54, the archive filesystem broke. The implementation needed to be a tiny bit different, and at least one bug broke it completely (mholt/archives#9).

This PR updates the package to the newest version (the bug fix) and then returns ArchiveFS as a pointer, as on ArchiveFS, only the pointer method for ReadDir exists. This fixes walking the archive.

Also, I changed the type it searches for to archives.Extraction instead of archives.Archival to support extracting .rar archives.

@ArnaudLier
Copy link
Contributor

RAR extraction still needs to be fixed.
This can be done by changing case archives.Archival: to case archives.Extraction: as the ArchiveFS does not need to write archives (and it isn't implemented for RAR for patent reasons).

@Linux123123
Copy link
Author

You are right. I was wondering why it was using archives.Archival as opposed to archives.Extraction.

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.

2 participants