diff --git a/ext/toolchain/ftputil.py b/ext/toolchain/ftputil.py index aef8363e..3351f6b4 100644 --- a/ext/toolchain/ftputil.py +++ b/ext/toolchain/ftputil.py @@ -44,7 +44,9 @@ class FtpUploader: def changeDir(self, ftp, dir): if dir not in ftp.nlst(): print "Creating dir '%s'" % dir - ftp.mkd(dir) + try: + ftp.mkd(dir) + except: print "Changing to dir '%s'" % dir ftp.cwd(dir)