Author Ian Liu Rodrigues
Recipients Ian Liu Rodrigues
Date 2018-11-13.19:20:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542136841.11.0.788709270274.issue35236@psf.upfronthosting.co.za>
In-reply-to
Content
Some FTP clients will not allow changing to a directory if the path does not ends with a slash. For example, try out this in a public FTP:

from ftplib import FTP
ftp = FTP('ftp.unicamp.br')
ftp.login()
ftp.cwd('pub/libreoffice') # throws error
ftp.cwd('pub/libreoffice/') # OK

The problem is urllib.request doesn't include the trailing slash, thus throwing an error. This behavior also happens with the command line ftp client.

I think this happens because the libreoffice directory is a symlink, and this can be a FTP server specific behavior.
History
Date User Action Args
2018-11-13 19:20:41Ian Liu Rodriguessetrecipients: + Ian Liu Rodrigues
2018-11-13 19:20:41Ian Liu Rodriguessetmessageid: <1542136841.11.0.788709270274.issue35236@psf.upfronthosting.co.za>
2018-11-13 19:20:41Ian Liu Rodrigueslinkissue35236 messages
2018-11-13 19:20:41Ian Liu Rodriguescreate