diff options
author | Guido van Rossum <guido@python.org> | 1993-05-17 08:00:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-05-17 08:00:02 (GMT) |
commit | 02cf582e7382612827a2ad9f6810ecfb0faea553 (patch) | |
tree | bf6b816d85e962d4e1849dfe2077ce43702b8a63 | |
parent | 605b127ff32390ed7f36282fa542cb8a82b84bdd (diff) | |
download | cpython-02cf582e7382612827a2ad9f6810ecfb0faea553.zip cpython-02cf582e7382612827a2ad9f6810ecfb0faea553.tar.gz cpython-02cf582e7382612827a2ad9f6810ecfb0faea553.tar.bz2 |
Added cwd()
-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) |