mirror of
https://github.com/python/cpython.git
synced 2025-10-19 13:18:16 +00:00
add acct() method to send new account name
This commit is contained in:
parent
ba426640dd
commit
0eaa74bf8d
1 changed files with 5 additions and 0 deletions
|
@ -328,6 +328,11 @@ class FTP:
|
||||||
conn.close()
|
conn.close()
|
||||||
self.voidresp()
|
self.voidresp()
|
||||||
|
|
||||||
|
# Send new account name
|
||||||
|
def acct(self, password):
|
||||||
|
cmd = 'ACCT ' + password
|
||||||
|
self.voidcmd(cmd)
|
||||||
|
|
||||||
# Return a list of files in a given directory (default the current)
|
# Return a list of files in a given directory (default the current)
|
||||||
def nlst(self, *args):
|
def nlst(self, *args):
|
||||||
cmd = 'NLST'
|
cmd = 'NLST'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue