Skip to content

Commit

Permalink
cwlprov: fix snapshots for locations with plus signs
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 12, 2023
1 parent c73e1f7 commit 222b53c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cwltool/cwlprov/ro.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import shutil
import tempfile
import urllib
import uuid
from pathlib import Path, PurePosixPath
from typing import (
Expand Down Expand Up @@ -429,7 +430,7 @@ def generate_snapshot(self, prov_dep: CWLObjectType) -> None:
self.self_check()
for key, value in prov_dep.items():
if key == "location" and cast(str, value).split("/")[-1]:
location = cast(str, value)
location = urllib.parse.unquote(cast(str, value))
filename = location.split("/")[-1]
path = os.path.join(self.folder, SNAPSHOT, filename)
filepath = ""
Expand Down

0 comments on commit 222b53c

Please sign in to comment.