Skip to content

Conversation

@markcallen
Copy link
Owner

This PR updates the cache cleaning logic to only delete cache directories, not all directories that are found.

Changes

  • Only deleting cache directories, not all that are found

Related

  • Branch: chore/only_delete_cache_dirs

@markcallen markcallen requested a review from Copilot November 27, 2025 04:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the cache cleaning logic to only delete directories that match cache patterns, preventing unintended deletion of non-cache directories during cleanup operations.

Key Changes:

  • Filters findings to only include those with a non-empty Pattern field before deletion
  • Updates size calculations and display logic to reflect only cache directories
  • Adds check to prevent deletion when no cache directories are found

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@markcallen markcallen force-pushed the chore/only_delete_cache_dirs branch from ed706bd to a48c933 Compare November 27, 2025 04:50
@markcallen markcallen merged commit 80a6f4f into main Nov 27, 2025
4 checks passed
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.

2 participants