From 6bbd1d0f0efc4f7d766cb7d015e013fe96a1a362 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 2 Jul 1998 20:41:20 +0000 Subject: According to Robin Dunn, at least one FTP server returns 200 instead of 250 on a successful delete. --- Lib/ftplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 0c14c6b..e18f684 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 -- cgit v0.12