diff options
-rw-r--r-- | Lib/ftplib.py | 4 |
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) |