A robust Python utility that monitors a directory for new or modified files and automatically triggers a specified Python script. Ideal for data pipelines, batch processors, or automated workflows.
- π΅οΈββοΈ Monitors a folder for file additions or modifications
- β‘ Optional immediate execution at script startup
- π Configurable polling interval (default: 10 seconds)
- π Uses file timestamps for accurate change detection
- π Lightweight: no third-party dependencies
- Python 3.6+
- Works on Linux, macOS, and Windows
python WaS.py <watched_dir> <trigger_script> [--interval SECONDS] [--trigger-on-startup]