Library multiple sources list
Tracking multiple sources makes more sense as a list, rather than an FSTree().
This commit is contained in:
parent
aec799ece6
commit
fb24259b4a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue