We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b049e8 commit 6bf7ca1Copy full SHA for 6bf7ca1
cwltool/job.py
@@ -101,8 +101,11 @@ def relink_initialworkdir(
101
except PermissionError:
102
pass
103
elif os.path.isdir(host_outdir_tgt) and not vol.resolved.startswith("_:"):
104
- ensure_writable(host_outdir_tgt, include_root=True)
105
- shutil.rmtree(host_outdir_tgt)
+ try:
+ ensure_writable(host_outdir_tgt, include_root=True)
106
+ shutil.rmtree(host_outdir_tgt)
107
+ except PermissionError:
108
+ pass
109
if not vol.resolved.startswith("_:"):
110
try:
111
os.symlink(vol.resolved, host_outdir_tgt)
0 commit comments