MCPcopy Index your code
hub / github.com/HKUDS/DeepCode / cleanup_cache

Function cleanup_cache

deepcode.py:339–349  ·  view source on GitHub ↗

Clean up Python cache files

()

Source from the content-addressed store, hash-verified

337
338
339def cleanup_cache():
340 """Clean up Python cache files"""
341 try:
342 print("🧹 Cleaning up cache files...")
343 # Clean up __pycache__ directories
344 os.system('find . -type d -name "__pycache__" -exec rm -r {} + 2>/dev/null')
345 # Clean up .pyc files
346 os.system('find . -name "*.pyc" -delete 2>/dev/null')
347 print("✅ Cache cleanup completed")
348 except Exception as e:
349 print(f"⚠️ Cache cleanup failed: {e}")
350
351
352def print_banner():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected