def do_cd(self, s):
self.execute_remote('cd ' + s)
if len(self.__outputBuffer.strip('\r\n')) > 0:
print self.__outputBuffer.decode(CODEC)
self.__outputBuffer = ''
else:
self.__pwd = ntpath.normpath(ntpath.join(self.__pwd, s.decode(sys.stdin.encoding)))
self.execute_remote('cd ')
self.__pwd = self.__outputBuffer.strip('\r\n').decode(CODEC)
self.prompt = unicode(self.__pwd + '>').encode(sys.stdout.encoding)
self.__outputBuffer = ''
评论列表
文章目录