Library list sources

calling library.get_sources() will iterate over the list of sources
contained in the library.  This is mostly used for storing in the backup
xml.
This commit is contained in:
Bryan Schumaker 2010-11-30 23:06:33 -05:00
parent 5d17242912
commit 53027b6006

View File

@ -93,6 +93,10 @@ def walk():
for tag in tag_tree.walk():
yield tag[3]
def get_sources():
for source in sources:
yield source
def file_to_id(file):
return os.stat(file).st_ino