code: def write_file(self, blob, dest):
          '''
          Using the blob object, write the file to the destination path
          '''
          with salt.utils.files.fopen(dest, 'wb+') as fp_:
              fp_.write(blob.dataf write_file(self, blob, dest):
          '''
          Using the blob object, write the file to the destination path
          '''
          with salt.utils.files.fopen(dest, 'wb+') as fp_:
              fp_.write(blob.data)
docs: Using the blob object, write the file to the destination path