We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8d92a2 commit 2593ff8Copy full SHA for 2593ff8
1 file changed
src/huggingface_hub/utils/_cache_manager.py
@@ -657,6 +657,8 @@ def scan_cache_dir(cache_dir: str | Path | None = None) -> HFCacheInfo:
657
for repo_path in cache_dir.iterdir():
658
if repo_path.name == ".locks": # skip './.locks/' folder
659
continue
660
+ if repo_path.name == "CACHEDIR.TAG": # skip CACHEDIR.TAG file
661
+ continue
662
try:
663
repos.add(_scan_cached_repo(repo_path))
664
except CorruptedCacheException as e:
0 commit comments