FSTree() correct insert

Correctly insert a split path into a FSTree()
This commit is contained in:
Bryan Schumaker 2010-11-09 20:08:17 -05:00
parent 019cded563
commit dbc2d767d3
1 changed files with 4 additions and 4 deletions

View File

@ -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])