summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 18:37:21 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-25 18:37:21 (GMT)
commit0eaa74bf8dbae21b7225cfd19bd0f996f5fd02de (patch)
treec8913bf18c80851577e19ad403c0b81cef1c09b3 /Lib/ftplib.py
parentba426640ddeba29877ce9ebd750864aef7faeef9 (diff)
downloadcpython-0eaa74bf8dbae21b7225cfd19bd0f996f5fd02de.zip
cpython-0eaa74bf8dbae21b7225cfd19bd0f996f5fd02de.tar.gz
cpython-0eaa74bf8dbae21b7225cfd19bd0f996f5fd02de.tar.bz2
add acct() method to send new account name
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r--Lib/ftplib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 0dc0d6e..e6e1a3a 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'