summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r--Lib/ftplib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 8423df6..1b4705e 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -303,6 +303,10 @@ class FTP:
raise error_reply, resp
self.voidcmd('RNTO ' + toname)
+ # Change to a directory
+ def cwd(self, dirname):
+ self.voidcmd('CWD ' + dirname)
+
# Make a directory, return its full pathname
def mkd(self, dirname):
resp = self.sendcmd('MKD ' + dirname)