[Python-bugs-list] ftplib.FTP.cwd fails when given an empty string (PR#54)

arcege@shore.net arcege@shore.net
Tue, 17 Aug 1999 19:53:27 -0400 (EDT)


Full_Name: Michael P. Reilly
Version: CVS sources as of 19990817
OS: Solaris 2.6, AIX 4.2.1
Submission from: golem.shore.net (198.115.177.38)


The cwd method of the ftplib.FTP class raises a IOError exception.
"IOError: [Errno ftp error] 500 'CWD ': command not understood."
Similarly, the urllib.URLopener.open_ftp method splits the pathname
into directories, but it does not correctly "remove" the root
pathname, it should instead pass "/".  I will email a patch to
Guido.