Skip to content

Commit 222b53c

Browse files
committed
cwlprov: fix snapshots for locations with plus signs
1 parent c73e1f7 commit 222b53c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/cwlprov/ro.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import shutil
77
import tempfile
8+
import urllib
89
import uuid
910
from pathlib import Path, PurePosixPath
1011
from typing import (
@@ -429,7 +430,7 @@ def generate_snapshot(self, prov_dep: CWLObjectType) -> None:
429430
self.self_check()
430431
for key, value in prov_dep.items():
431432
if key == "location" and cast(str, value).split("/")[-1]:
432-
location = cast(str, value)
433+
location = urllib.parse.unquote(cast(str, value))
433434
filename = location.split("/")[-1]
434435
path = os.path.join(self.folder, SNAPSHOT, filename)
435436
filepath = ""

0 commit comments

Comments
 (0)