MCPcopy Create free account
hub / github.com/FastLED/FastLED / cleanup_visual_studio_files

Function cleanup_visual_studio_files

ci/lint.py:69–81  ·  view source on GitHub ↗

Remove Visual Studio project files if they exist.

()

Source from the content-addressed store, hash-verified

67
68
69def cleanup_visual_studio_files() -> None:
70 """Remove Visual Studio project files if they exist."""
71 tests_dir = Path("tests")
72 if tests_dir.exists():
73 for pattern in ["*.vcxproj", "*.vcxproj.filters", "*.sln"]:
74 for file_path in tests_dir.glob(f"**/{pattern}"):
75 try:
76 file_path.unlink()
77 except KeyboardInterrupt:
78 _thread.interrupt_main()
79 raise
80 except Exception:
81 pass # Ignore errors
82
83
84def cleanup_crash_dump_files() -> None:

Callers 1

mainFunction · 0.85

Calls 1

unlinkMethod · 0.80

Tested by

no test coverage detected