We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f90686 commit 221839eCopy full SHA for 221839e
dpdispatcher/ssh_context.py
@@ -334,8 +334,9 @@ def upload(self,
334
try:
335
self.ssh_session.sftp.mkdir(os.path.basename(self.remote_root))
336
except OSError:
337
- # mkdir failed meaning it exists, thus the job is recovered
338
- recover = True
+ # mkdir failed meaning it exists
+ if len(self.ssh_session.sftp.listdir(os.path.basename(self.remote_root))):
339
+ recover = True
340
self.ssh_session.sftp.chdir(None)
341
342
cwd = os.getcwd()
0 commit comments