code: def save(self, location=None, custom_name=None):
          
          if not self.content:
              return False
  
          location = Path(location or '')
          if not location.exists():
              log.debug('the location provided does not exist')
              return False
  
          name = custom_name or self.name
          name = name.replace('/', '-').replace('\\', '')
          try:
              path = location / name
              with path.open('wb') as file:
                  file.write(base64.b64decode(self.content))
              self.attachment = path
              self.on_disk = True
              log.debug('file saved locally.')
          except Exception as e:
              log.error('file failed to be saved: %s', str(e))
              return False
          return True
docs: Save the attachment locally to disk
  
          :param str location: path string to where the file is to be saved.
          :param str custom_name: a custom name to be saved as
          :return: Success / Failure
          :rtype: bool