Replies: 1 comment 1 reply
-
The code for building the treeview in Dearchiver can be found here: It's basically doing that. There are no guarantees of the order afaik. It is really slow on large archives though, so it tends to just bail on these and show a reduced tree view. Especially since I rarely even use the tree. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
In a personal project, i would like to load all contents of a zip file (the names only of course) in a treeview in order to see the zip structure there. I can't decide how to proceed though. From what i've found in the net, the "standard" way to parse a zip file is with a "foreach" loop, however i have found no way to associate a folder ZipEntry with its children (files/folders ZipEntries in it), apart from splitting its full name and checking that against other ZipEntries.
Has anyone found (or created) code for performing such a task or should i try to invent the wheel? It would at least help to know if the ZipEntries are somehow sorted and child ZipEntries will never appear before their respective parents in a "foreach" loop.
Beta Was this translation helpful? Give feedback.
All reactions