fix bug on making find tree

This commit is contained in:
Amber 2024-01-16 14:21:59 +01:00
parent 665c264315
commit de81490a91
1 changed files with 3 additions and 0 deletions

View File

@ -277,6 +277,9 @@ def find_tree_struct(startpath, item_name):
if not found:
raise Exception('Bug!!!')
if p['abs_path'] in [c['abs_path'] for c in children]:
continue
islastpath = True if (n== len(path)-1) else False
if not islastpath: children.append(pcopy)