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 b968b42 commit 8393fa2Copy full SHA for 8393fa2
cwltool/job.py
@@ -100,7 +100,10 @@ def relink_initialworkdir(
100
pass
101
elif os.path.isdir(host_outdir_tgt) and not vol.resolved.startswith("_:"):
102
ensure_writable(host_outdir_tgt, include_root=True)
103
- shutil.rmtree(host_outdir_tgt)
+ try:
104
+ shutil.rmtree(host_outdir_tgt)
105
+ except PermissionError:
106
+ pass
107
if not vol.resolved.startswith("_:"):
108
try:
109
os.symlink(vol.resolved, host_outdir_tgt)
0 commit comments