From 02cf582e7382612827a2ad9f6810ecfb0faea553 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 17 May 1993 08:00:02 +0000 Subject: [PATCH] Added cwd() --- Lib/ftplib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 8423df6d8ca..1b4705e0c6d 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)