We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e2e1f commit 41fc95aCopy full SHA for 41fc95a
mfr/extensions/zip/render.py
@@ -54,15 +54,9 @@ def sorted_obj_list_to_tree(self, sorted_obj_list: list) -> List[dict]:
54
path_from_root = obj.filename
55
print(path_from_root)
56
path_segments = [segment for segment in path_from_root.split('/') if segment]
57
- # Ignore the root tree node
58
- if len(path_segments) == 1:
59
- continue
60
# Find the parent node of the current object, always start from the root node
61
parent = tree_root
62
for index, segment in enumerate(path_segments):
63
- # the first segment is the tree node, skip
64
- if index == 0:
65
66
# last segment is the current object, parents must have been found, end loop
67
if index == len(path_segments) - 1:
68
break
0 commit comments