Commit 279fd9cb authored by Guido van Rossum's avatar Guido van Rossum

Added cwd()

parent c176b28e
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment