-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Description
blockcache and cached refer to the same class in the registry, however I observe the following.
url = 'https://nomads.ncep.noaa.gov/pub/data/nccf/com/nwm/prod/nwm.20241016/forcing_analysis_assim/nwm.t00z.analysis_assim.forcing.tm00.conus.nc'
z1 = fsspec.open(f"blockcache::{url}")
# <OpenFile 'https://nomads.ncep.noaa.gov/pub/data/nccf/com/nwm/prod/nwm.20241016/forcing_analysis_assim/nwm.t00z.analysis_assim.forcing.tm00.conus.nc'>
z2 = fsspec.open(f"cached::{url}")
# <OpenFile ''>
It appears the path goes missing when open calls get_fs_token_paths
fsspec.core.get_fs_token_paths(f"blockcache::{url}") # returns correct path
fsspec.core.get_fs_token_paths(f"cached::{url}") # returns empty string for path
Should the behavior be consistent here?
Metadata
Metadata
Assignees
Labels
No labels