summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
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