Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0eaa74b

Browse files
committed
add acct() method to send new account name
1 parent ba42664 commit 0eaa74b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/ftplib.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ def storlines(self, cmd, fp):
328328
conn.close()
329329
self.voidresp()
330330

331+
# Send new account name
332+
def acct(self, password):
333+
cmd = 'ACCT ' + password
334+
self.voidcmd(cmd)
335+
331336
# Return a list of files in a given directory (default the current)
332337
def nlst(self, *args):
333338
cmd = 'NLST'

0 commit comments

Comments
 (0)