We need a script to automatically clean temporary files from specified directories to keep the system organized.
Tasks:
1. Create scripts/cleanup_temp.py
2. Support command-line arguments for target directories
3. Add logging for deleted files and errors
4. Add dry-run mode to preview files before deletion
5. Update docs/how_to_run_scripts.md with usage examples
6. Write basic unit tests in tests/test_cleanup_temp.py
Goal:
Provide a safe and reusable script for cleaning temporary files that contributors can expand upon.
We need a script to automatically clean temporary files from specified directories to keep the system organized.
Tasks:
1. Create scripts/cleanup_temp.py
2. Support command-line arguments for target directories
3. Add logging for deleted files and errors
4. Add dry-run mode to preview files before deletion
5. Update docs/how_to_run_scripts.md with usage examples
6. Write basic unit tests in tests/test_cleanup_temp.py
Goal:
Provide a safe and reusable script for cleaning temporary files that contributors can expand upon.