From: Guido van Rossum Date: Thu, 2 Jul 1998 20:41:20 +0000 (+0000) Subject: According to Robin Dunn, at least one FTP server returns 200 instead X-Git-Tag: v1.5.2a1~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362;p=python According to Robin Dunn, at least one FTP server returns 200 instead of 250 on a successful delete. --- diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 0c14c6b31a..e18f684185 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -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