ocarina/src/core/tools/library.py

28 lines
464 B
Python

# This is a simple test plugin, to make sure everything is working
__author__="bjschuma"
__date__ ="$Dec 21, 2009 8:43:01 PM$"
from bt.file import *
from bt.message import write
class Library:
def __init__(self):
self.files = []
def scan(self, dir):
files = ls(dir)
for file in files:
path = join(dir,file)
if checkDir(path)==True:
self.scan(path)
else:
write(path,True)
self.files += [path]
global library
library = Library()