[issue9601] ftplib should accept 250 on MKD

Giampaolo Rodola' report at bugs.python.org
Tue Aug 17 18:31:31 CEST 2010


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

What IIS version are we talking about?
Could you please paste the complete response string other than just the code?
I'm asking this because 257 response is supposed to include the name of the created directory.

Personally I don't like to include workarounds for stupid implementations like this.
If IIS erroneously replies with 250 then maybe it doesn't even include the directory name in which case FTP.mkd method is completely useless for you and you can just work around the exception by using FTP.sendcmd('MKD dirname') instead.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9601>
_______________________________________


More information about the Python-bugs-list mailing list