def local(): # walk the downloads dir # build the local database gdldir = Const.gdldir() dirs = os.listdir(gdldir) localdb = [] i = 0 for d in dirs: fpath = gdldir + d files = os.listdir(fpath) for f in files: localdb = Parser.parse_localdb(localdb, d, f, i) i += 1 return (localdb)