Come faccio a limitare os.walk
a restituire solo i file nella directory che lo fornisco?
def _dir_list(self, dir_name, whitelist): outputList = [] per root, directory, file in os.walk(dir_name): per f in file: if os.path.splitext(f)[1] in whitelist: outputList.append(os.path.join(root, f) ) else: self._email_to_("ignore") return outputList