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
Fix exists() exception narrowing and add real HF revision integration test
FsspecInputFile.exists() reimplemented exists()-via-info() with a
try/except catching only FileNotFoundError, unlike fsspec's own
lexists()/exists() which swallow any exception. Delegate to
self._fs.exists() directly instead, which already forwards kwargs to
info() with the correct broad exception handling.
Also add an HF_TOKEN-gated integration test against a real (temporary)
Hugging Face dataset repo, demonstrating the concrete problem this
property solves: without hf.revision, reads always follow the repo's
moving default branch, so a file "written" at one commit silently
returns different content once someone pushes a new commit to the
same path. Minor: use a _HF_SCHEMES frozenset in _get_fs_kwargs for
consistency with the existing _ADLS_SCHEMES dispatch pattern, and
de-duplicate/strengthen two tests that asserted only on the private
_fs_kwargs attribute.
0 commit comments