You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to disable DirCache by passing use_listings_cache=False or listings_expiry_time=0, any listing operation would raise a KeyError, this is due to fsspec's DirCache raising KeyError if no cached item is found.
The cause of the error is from ossfs/core.py line 183.
try:
self.dircache[norm_path] =self._get_object_info_list(
bucket_name, prefix, delimiter, connect_timeout
)
returnself.dircache[norm_path] # <-- Raises KeyError if DirCache is disabledexceptoss2.exceptions.AccessDenied:
return []
When I tried to disable
DirCache
by passinguse_listings_cache=False
orlistings_expiry_time=0
, any listing operation would raise aKeyError
, this is due to fsspec'sDirCache
raisingKeyError
if no cached item is found.The cause of the error is from
ossfs/core.py
line 183.It should be changed to:
There might be other places in the SDK that need fixing.
The text was updated successfully, but these errors were encountered: