'Given a list of file paths, encodes it as a single remote path, in
the style used by rsync and scp.'

def _encode_remote_paths(self, paths, escape=True):

    if escape:
        paths = [utils.scp_remote_escape(path) for path in paths]
    return ('%s@%s:"%s"' % (self.user, self.hostname, '    '.join(paths)))
