Home
last modified time | relevance | path

Searched refs:sendcmd (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/
Dftplib.py270 def sendcmd(self, cmd): member in FTP
337 host, port = parse227(self.sendcmd('PASV'))
339 host, port = parse229(self.sendcmd('EPSV'), self.sock.getpeername())
364 self.sendcmd("REST %s" % rest)
365 resp = self.sendcmd(cmd)
382 self.sendcmd("REST %s" % rest)
383 resp = self.sendcmd(cmd)
418 resp = self.sendcmd('USER ' + user)
420 resp = self.sendcmd('PASS ' + passwd)
422 resp = self.sendcmd('ACCT ' + acct)
[all …]
/external/python/cpython2/Lib/
Dftplib.py248 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)
[all …]
/external/python/cpython3/Lib/test/
Dtest_ftplib.py494 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\r\n0')
495 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\n0')
496 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\r0')
497 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 400')
498 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 499')
499 self.assertRaises(ftplib.error_perm, self.client.sendcmd, 'echo 500')
500 self.assertRaises(ftplib.error_perm, self.client.sendcmd, 'echo 599')
501 self.assertRaises(ftplib.error_proto, self.client.sendcmd, 'echo 999')
708 self.client.sendcmd('noop')
716 self.client.sendcmd('noop')
[all …]
/external/python/cpython2/Lib/test/
Dtest_ftplib.py442 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\r\n0')
443 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\n0')
444 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\r0')
445 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 400')
446 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 499')
447 self.assertRaises(ftplib.error_perm, self.client.sendcmd, 'echo 500')
448 self.assertRaises(ftplib.error_perm, self.client.sendcmd, 'echo 599')
449 self.assertRaises(ftplib.error_proto, self.client.sendcmd, 'echo 999')
581 self.assertRaises(ftplib.Error, self.client.sendcmd,
585 self.client.sendcmd('SETLONGRETR %d' % (self.client.maxline * 2))
/external/python/cpython2/Doc/library/
Dftplib.rst210 .. method:: FTP.sendcmd(command)
/external/python/cpython3/Doc/library/
Dftplib.rst222 .. method:: FTP.sendcmd(cmd)