Library multiple sources list

Tracking multiple sources makes more sense as a list, rather than an
FSTree().
This commit is contained in:
Bryan Schumaker 2010-11-26 10:56:44 -05:00
parent aec799ece6
commit fb24259b4a
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ def reset():
global sources
global visible
sources = FSTree()
sources = []
fs_tree = DLFSTree()
tag_tree = DLValTree()
@ -173,7 +173,7 @@ def is_visible(id):
def add_source(path):
global sources
sources.insert_path(path)
sources.append(path)
def scan(path):
add_source(path)
@ -225,5 +225,5 @@ def update_path(path):
def update():
global sources
sep = libsaria.path.sep
for path in sources.walk_paths():
for path in sources:
update_path(path)