diff options
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r-- | Lib/ftplib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py index d2ff435..eee8e5a 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -437,6 +437,8 @@ class FTP: except error_perm, msg: if msg[:3] != '500': raise error_perm, msg + elif dirname == '': + dirname = '.' # does nothing, but could return error cmd = 'CWD ' + dirname return self.voidcmd(cmd) |