Skip to content

Commit

Permalink
[🐛](src/huggingface_hub/utils/_cache_manager.py): Fix bug by ignoring…
Browse files Browse the repository at this point in the history
… specific files in cache manager (#2660)
  • Loading branch information
johnmai-dev authored Nov 12, 2024
1 parent 17e1701 commit 9e7ff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/utils/_cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def _scan_cached_repo(repo_path: Path) -> CachedRepoInfo:

for ref_path in refs_path.glob("**/*"):
# glob("**/*") iterates over all files and directories -> skip directories
if ref_path.is_dir():
if ref_path.is_dir() or ref_path.name in FILES_TO_IGNORE:
continue

ref_name = str(ref_path.relative_to(refs_path))
Expand Down

0 comments on commit 9e7ff04

Please sign in to comment.