huggingface_hub
acf036d6 - Faster `HfFileSystem.glob` (#1815)

Commit
2 years ago
Faster `HfFileSystem.glob` (#1815) * Remove `HfFileSystem.exists` override * Add `list_repo_tree` to the API * Rename `BlobLastCommitInfo` to `LastCommitInfo` * Add `get_paths_info` to the API * Improve HfFileSystem tests * Faster `HfFileSystem.find` * Tests * Update src/huggingface_hub/hf_api.py Co-authored-by: Lucain <lucainp@gmail.com> * Address the rest of comments * Fix comment * don't expand info for glob * replace detail by expand_info in info() * remove usuned var * remove detail in _ls_tree * pass expand_info=detail by default in ls and find * style * expand info if detail=True in glob * fix test * add test glob with detail * pass find kwargs to info --------- Co-authored-by: mariosasko <mariosasko777@gmail.com> Co-authored-by: Mario Šaško <mario@huggingface.co> Co-authored-by: Lucain <lucainp@gmail.com>
Author
Parents
Loading