Added cwd()

This commit is contained in:
Guido van Rossum 1993-05-17 08:00:02 +00:00
parent 605b127ff3
commit 02cf582e73
1 changed files with 4 additions and 0 deletions

View File

@ -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)