'Copies one or more files from the local host to the remote host.'

def put(self, localpaths, remotepath='.'):

    localpaths = self._make_list(localpaths)
    recursive = False
    for lpath in localpaths:
        if os.path.isdir(lpath):
            recursive = True
            break
    try:
        self.scp.put(localpaths, remote_path=remotepath, recursive=recursive)
    except Exception as e:
        log.debug('put    failed:    localpaths=%s,    remotepath=%s', str(localpaths), remotepath)
        raise exception.SCPException(str(e))
