Lines Matching refs:sendcmd
246 def sendcmd(self, cmd): member in FTP
312 host, port = parse227(self.sendcmd('PASV'))
314 host, port = parse229(self.sendcmd('EPSV'), self.sock.getpeername())
338 self.sendcmd("REST %s" % rest)
339 resp = self.sendcmd(cmd)
357 self.sendcmd("REST %s" % rest)
358 resp = self.sendcmd(cmd)
392 resp = self.sendcmd('USER ' + user)
393 if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
394 if resp[0] == '3': resp = self.sendcmd('ACCT ' + acct)
436 resp = self.sendcmd('TYPE A')
538 resp = self.sendcmd('RNFR ' + fromname)
545 resp = self.sendcmd('DELE ' + filename)
567 resp = self.sendcmd('SIZE ' + filename)
577 resp = self.sendcmd('MKD ' + dirname)
586 resp = self.sendcmd('PWD')
734 resp = self.sendcmd('TYPE A')
900 sourcehost, sourceport = parse227(source.sendcmd('PASV'))
905 treply = target.sendcmd('STOR ' + targetname)
907 sreply = source.sendcmd('RETR ' + sourcename)
1068 resp = ftp.sendcmd(cmd)