Changaco / python-libarchive-c

Python interface to libarchive
Other
70 stars 37 forks source link

Seekable stream reader #107

Closed juliospain closed 3 years ago

juliospain commented 3 years ago

When using the stream reader with a 7zip file, and retrieving only the entries, I received the error that the client is not seekable.

This can be solved by setting up the seek call back in the libarchive archive. Then the open function can be called as usual which set-ups the other call-backs.

juliospain commented 3 years ago

Sorry about the thousand commits :P The testing is not working in my computer and I had to develop it somehow.

Changaco commented 3 years ago

I can't review this because the diff is unreadable. It looks like you've changed all line endings.

juliospain commented 3 years ago

Sorry about the EOL. Now it is fine. I included a test with 7zip reading entries (it requires the seek callback)