From: Guido van Rossum Date: Thu, 25 Jan 1996 18:37:21 +0000 (+0000) Subject: add acct() method to send new account name X-Git-Tag: v1.4b1~383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0eaa74bf8dbae21b7225cfd19bd0f996f5fd02de;p=python add acct() method to send new account name --- diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 0dc0d6e649..e6e1a3aafc 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -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'