mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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()
|
||||
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)
|
||||
def nlst(self, *args):
|
||||
cmd = 'NLST'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue