flag_possible = False
break
for n in self.list_not_contain:
if n in filename:
flag_possible = False
break
if flag_possible:
list_final.append(os.path.join(p, filename))
name_list_final.append(self.list_subjects_potential(
filename))
After Change
if any(c in filename for c in self.list_not_contain):
continue
full_file_name = os.path.join(p, filename)
list_final.append(full_file_name)
name_list_final.append(
self.list_subjects_potential(filename))
return list_final, name_list_final