FSTree() correct insert
Correctly insert a split path into a FSTree()
This commit is contained in:
parent
019cded563
commit
dbc2d767d3
|
@ -61,8 +61,8 @@ class FSTree(Tree):
|
|||
self.insert_path_split(path, file)
|
||||
|
||||
def insert_path_split(self, base, file = None):
|
||||
path = base
|
||||
if file != None:
|
||||
path += [file]
|
||||
self.insert(path)
|
||||
if file == None:
|
||||
self.insert(base)
|
||||
else:
|
||||
self.insert(base + [file])
|
||||
|
||||
|
|
Loading…
Reference in New Issue