'transfer a file from local to remote'

def put_file(self, in_path, out_path):

    super(Connection, self).put_file(in_path, out_path)
    out_path = self._normalize_path(out_path, '/')
    self._display.vvv(('PUT    %s    TO    %s' % (in_path, out_path)), host=self.host)
    content = open(in_path).read()
    self.client.cmd(self.host, 'file.write', [out_path, content])
