def METHOD_NAME(self, folder):
    for file_entry in os.scandir(folder.path):
        if file_entry.is_file():
            message_id = int(folder.name)
            all_attachments = FoiAttachment.objects.filter(belongs_to_id=message_id)
            result = self.handle_file(file_entry, all_attachments)
            if self.run_now and not self.run_all and result:
                raise Exception("Not running all")
            print("-" * 20)