示例#1
0
 def print_error(self, msg):
     err = clibssh.ssh_get_error(self.session)
     print "%s: %s" % (msg, err)
示例#2
0
 def write(self, data):
     rc = clibssh.sftp_write(self.file, bytes(data), len(bytes(data)))
     err = clibssh.ssh_get_error(self.session.session.session)
     return rc