Lines Matching refs:sendcmd
248 def sendcmd(self, cmd): member in FTP
314 host, port = parse227(self.sendcmd('PASV'))
316 host, port = parse229(self.sendcmd('EPSV'), self.sock.getpeername())
340 self.sendcmd("REST %s" % rest)
341 resp = self.sendcmd(cmd)
359 self.sendcmd("REST %s" % rest)
360 resp = self.sendcmd(cmd)
394 resp = self.sendcmd('USER ' + user)
395 if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
396 if resp[0] == '3': resp = self.sendcmd('ACCT ' + acct)
440 resp = self.sendcmd('TYPE A')
550 resp = self.sendcmd('RNFR ' + fromname)
557 resp = self.sendcmd('DELE ' + filename)
579 resp = self.sendcmd('SIZE ' + filename)
589 resp = self.sendcmd('MKD ' + dirname)
598 resp = self.sendcmd('PWD')
746 resp = self.sendcmd('TYPE A')
912 sourcehost, sourceport = parse227(source.sendcmd('PASV'))
917 treply = target.sendcmd('STOR ' + targetname)
919 sreply = source.sendcmd('RETR ' + sourcename)
1080 resp = ftp.sendcmd(cmd)