Skip to content

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Oct 17, 2025

this could happen when listing a parent directory of an already explored directory:

  File "/Users/quentinlhoest/.pyenv/versions/hf-datasets/lib/python3.12/site-packages/fsspec/spec.py", line 637, in glob
    allpaths = self.find(root, maxdepth=depth, withdirs=True, detail=True, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/quentinlhoest/hf/huggingface_hub/src/huggingface_hub/hf_file_system.py", line 567, in find
    out = self._ls_tree(
          ^^^^^^^^^^^^^^
  File "/Users/quentinlhoest/hf/huggingface_hub/src/huggingface_hub/hf_file_system.py", line 448, in _ls_tree
RuntimeError: dictionary changed size during iteration

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@lhoestq lhoestq merged commit 5b1a914 into main Oct 17, 2025
24 of 26 checks passed
@lhoestq lhoestq deleted the hffs-minor-fix branch October 17, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants