Swallow mkd fail in case nlst doesn't work #4695
This commit is contained in:
parent
91d05c29db
commit
d278c2d8d4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue