--- /usr/local/lib/python2.4/ftplib.py Mon Feb 7 16:20:53 2005 +++ ./ftplib.py Tue Nov 15 00:00:46 2005 @@ -325,6 +325,8 @@ if rest is not None: self.sendcmd("REST %s" % rest) resp = self.sendcmd(cmd) + if resp[0] == '2': + resp = self.getresp() if resp[0] != '1': raise error_reply, resp else: @@ -332,6 +334,8 @@ if rest is not None: self.sendcmd("REST %s" % rest) resp = self.sendcmd(cmd) + if resp[0] == '2': + resp = self.getresp() if resp[0] != '1': raise error_reply, resp conn, sockaddr = sock.accept()

AltStyle によって変換されたページ (->オリジナル) /