#!/usr/bin/python import os , string from os import path from thing import thing class folder(thing): def __init__(self,sdb,parent=''): thing.__init__(self,sdb,parent) self.ftype = 'folder' def check(self,sdb): return True def fetch(self): if path.isdir(self.path): li = os.listdir(self.path) for i in li: t = folder(self.sdb,self.uuid) t.path = self.path+'/'+i if path.isdir(self.path): t.insert_line(self.sdb) return True