mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-01 21:02:39 +08:00
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
Block a user