fix bug on making find tree
This commit is contained in:
parent
665c264315
commit
de81490a91
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue