]> granicus.if.org Git - python/commitdiff
add acct() method to send new account name
authorGuido van Rossum <guido@python.org>
Thu, 25 Jan 1996 18:37:21 +0000 (18:37 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 25 Jan 1996 18:37:21 +0000 (18:37 +0000)
Lib/ftplib.py

index 0dc0d6e649daaa57495bd650909b90828c127027..e6e1a3aafc0fc4df555fe6d70c64ab450c8073ed 100644 (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'