We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a7412 commit 83b0882Copy full SHA for 83b0882
cwltool/job.py
@@ -106,8 +106,11 @@ def relink_initialworkdir(
106
except PermissionError:
107
pass
108
elif os.path.isdir(host_outdir_tgt) and not vol.resolved.startswith("_:"):
109
- ensure_writable(host_outdir_tgt, include_root=True)
110
- shutil.rmtree(host_outdir_tgt)
+ try:
+ ensure_writable(host_outdir_tgt, include_root=True)
111
+ shutil.rmtree(host_outdir_tgt)
112
+ except PermissionError:
113
+ pass
114
if not vol.resolved.startswith("_:"):
115
try:
116
os.symlink(vol.resolved, host_outdir_tgt)
0 commit comments