Patch #817379: Allow for absolute ftp paths.

Backported to 2.3.
This commit is contained in:
Martin v. Löwis 2004-02-15 20:51:39 +00:00
parent 32d23c9264
commit 7db04e7c48
1 changed files with 1 additions and 1 deletions

View File

@ -1099,8 +1099,8 @@ class FTPHandler(BaseHandler):
if port is None:
port = ftplib.FTP_PORT
path, attrs = splitattr(req.get_selector())
path = unquote(path)
dirs = path.split('/')
dirs = map(unquote, dirs)
dirs, file = dirs[:-1], dirs[-1]
if dirs and not dirs[0]:
dirs = dirs[1:]