def listAllFiles(self, clean = False): dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"listAllFiles: called.") self.cursor.execute('SELECT file FROM content') if clean: os.system("echo a") my = set() for row in self.cursor: my.add(row[0]) #my = self.cursor.fetchall() os.system("echo b") return my