Kaydet (Commit) 1ebcf6aa authored tarafından Guido van Rossum's avatar Guido van Rossum

Patches by Michael Reilly to correctly deal with ftp URLs of the form

ftp://user@host//root/path: the double slash in the pathname means to
go to the root directory even if the initial directory isn't the root.
üst 8a07baef
......@@ -437,6 +437,8 @@ class FTP:
except error_perm, msg:
if msg[:3] != '500':
raise error_perm, msg
elif dirname == '':
dirname = '.' # does nothing, but could return error
cmd = 'CWD ' + dirname
return self.voidcmd(cmd)
......
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