Replies: 1 comment 2 replies
-
Hi!
You're welcome! Thank you for using it!
Unfortunately, there's no solution using bit7z, at least at the moment.
The main problem is that the nested archive is compressed using the outer archive format. So we need to first decompress the outer archive in order to be able to read the nested one using its own compression format. |
Beta Was this translation helpful? Give feedback.
-
First of all, I wanted to thank you for the library that you prepared, it is very practical and easy to use.
Currently, I was working on a project where I needed to handle nested compressed archives in two ways:
First - a method to have the content and the output address of those nested archives, which can almost be said to have been achieved by using Recursion and .extractTo along side Reader that gets buffer instead of path.
Second - I just wanted to use it to get the content list inside those archives without needing their content.
Where does the problem occur? In order to access the contents of nested archives, I must first extract it into the memory and then give that buffer to the Reader again so that I can use methods like .items() and iterate on it. This can cause a lot of memory to be used... for some reason I can't extract to disk and I have to work with memory only. Do you think there is a solution for this?
I was looking for how to extract and display the content list inside the archive by 7z, Does it do the same thing or does it get that information by reading the header file?
If it gets it by reading the header, is there a way I can use that method without having to extract the whole file?
for more information, here is part of code I wrote to get Content of Archive recursively (it's not list only, it's list and buffer together):
Beta Was this translation helpful? Give feedback.
All reactions