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.
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.