docstr: Test if the snapshot directory exists but is empty.
docstr_tok: ["Test","if","the","snapshot","directory","exists","but","is","empty","."]
code: def test_repo_with_no_snapshots(self) -> None:
      """Test if the snapshot directory exists but is empty."""
      rmtree_with_retry(self.refs_path)
      rmtree_with_retry(self.snapshots_path)
      self.snapshots_path.mkdir()
  
      # Scan
      report = scan_cache_dir(self.cache_dir)
  
      # Get single repo
      self.assertEqual(len(report.warnings), 0)  # Did not fail
      self.assertEqual(len(report.repos), 1)
      repo_report = list(report.repos)[0]
  
      # No revisions in repos so last_modified is the one from the repo folder
      self.assertEqual(repo_report.size_on_disk, 0)
      self.assertEqual(len(repo_report.revisions), 0)
      self.assertEqual(
          repo_report.last_modified, self.repo_path.stat().st_mtime
      )
      self.assertEqual(
          repo_report.last_accessed, self.repo_path.stat().st_atime
      )
  
imports: import os
  import tempfile
  import time
  import unittest
  from pathlib import Path
  from unittest.mock import Mock
  import pytest
  from huggingface_hub._snapshot_download import snapshot_download
  from huggingface_hub.commands.scan_cache import ScanCacheCommand
  from huggingface_hub.utils import DeleteCacheStrategy, HFCacheInfo, capture_output, scan_cache_dir
  from huggingface_hub.utils._cache_manager import CacheNotFound, _format_size, _format_timesince, _try_delete_path
  from .testing_constants import TOKEN
  from .testing_utils import rmtree_with_retry, with_production_testing, xfail_on_windows
label_desc: Use image node_id 6 for calling the TestCorruptedCacheUtils obj's underlying member method code with example usage: obj.test_repo_with_no_snapshots() without return types