Skip to content

Commit c311908

Browse files
committed
checking for path existence instead of / path begining
1 parent 5bca2e0 commit c311908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def stageFiles(pm, stageFunc=None, ignoreWritable=False, symFunc=True):
203203
continue
204204
if not os.path.exists(os.path.dirname(p.target)):
205205
os.makedirs(os.path.dirname(p.target), 0o0755)
206-
if p.type in ("File", "Directory") and (p.resolved.startswith("/") or p.resolved.startswith("file:///")):
206+
if p.type in ("File", "Directory") and (os.path.exists(p.resolved)):
207207
if symFunc: # Use symlink func if allowed
208208
if os.name == 'nt':
209209
if p.type == "File":

0 commit comments

Comments
 (0)