add acct() method to send new account name

This commit is contained in:
Guido van Rossum 1996-01-25 18:37:21 +00:00
parent ba426640dd
commit 0eaa74bf8d
1 changed files with 5 additions and 0 deletions

View File

@ -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'