Skip to content

Commit 8af3e96

Browse files
committed
make sure we create a cache file relative to the cache folder
1 parent 513cff7 commit 8af3e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioimageio/spec/shared/_resolve_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def _download_url(uri: raw_nodes.URI, output: typing.Optional[os.PathLike] = Non
424424
elif BIOIMAGEIO_USE_CACHE:
425425
# todo: proper caching
426426
if uri.authority == "zenodo.org" and uri.path.startswith("/api/records/") and uri.path.endswith("/content"):
427-
p = uri.path[: -len("/content")]
427+
p = uri.path[: -len("/content")].stipr("/")
428428
else:
429429
p = uri.path.strip("/")
430430

0 commit comments

Comments
 (0)