def saveAttachmentAsFile(self, file_name, file_path):
    '\n        Save an attachment to file.\n\n        :param file_name: The attachment file name\n        :param file_path: File where to save the attachment\n        '
    bin = self.getAttachment(file_name)
    with open(file_path, 'wb') as file:
        file.write(bin)
Save an attachment to file.

:param file_name: The attachment file name
:param file_path: File where to save the attachment
def saveAttachmentAsFile(self, file_name, file_path):
    '\n        Save an attachment to file.\n\n        :param file_name: The attachment file name\n        :param file_path: File where to save the attachment\n        '
    bin = self.getAttachment(file_name)
    with open(file_path, 'wb') as file:
        file.write(bin)