'save a remote file to the specified path'

def fetch_file(self, in_path, out_path):

    super(Connection, self).fetch_file(in_path, out_path)
    display.vvv(('FETCH    %s    TO    %s' % (in_path, out_path)), host=self._play_context.remote_addr)
    try:
        self.sftp = self._connect_sftp()
    except Exception as e:
        raise AnsibleError(('failed    to    open    a    SFTP    connection    (%s)' % to_native(e)))
    try:
        self.sftp.get(to_bytes(in_path, errors='surrogate_or_strict'), to_bytes(out_path, errors='surrogate_or_strict'))
    except IOError:
        raise AnsibleError(('failed    to    transfer    file    from    %s' % in_path))
