Kaydet (Commit) 6bbd1d0f authored tarafından Guido van Rossum's avatar Guido van Rossum

According to Robin Dunn, at least one FTP server returns 200 instead

of 250 on a successful delete.
üst 1717ba49
......@@ -422,7 +422,7 @@ class FTP:
def delete(self, filename):
'''Delete a file.'''
resp = self.sendcmd('DELE ' + filename)
if resp[:3] == '250':
if resp[:3] in ('250', '200'):
return resp
elif resp[:1] == '5':
raise error_perm, resp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment