Skip to content

Commit 266b0b0

Browse files
authored
Process URL using fsspec for storage options
Added processing of the URL using fsspec to handle storage options.
1 parent 775811d commit 266b0b0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

malariagen_data/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ def _init_filesystem(url, **kwargs):
487487
# Some other kind of URL, pass through kwargs as-is.
488488
storage_options = kwargs
489489

490+
# Process the URL using fsspec.
491+
fs, path = url_to_fs(url, **storage_options)
492+
490493
# Path compatibility, fsspec/gcsfs behaviour varies between versions.
491494
while path.endswith("/"):
492495
path = path[:-1]

0 commit comments

Comments
 (0)