diff --git a/libsaria/path.py b/libsaria/path.py index e6288a64..d6cdf86c 100644 --- a/libsaria/path.py +++ b/libsaria/path.py @@ -82,10 +82,9 @@ def make_tree_rest(path): tree = Tree() count = 0 for root,dirs,files in walk(path): - stripped_root = root.strip(sep) - split_root = root.split(sep) + split = root.split() for file in files: - tree.insert(split_root + [file]) + tree.insert_path_split(root, file) count += 1 tree.value = count return tree