send mail if files are modified either using inotify (better for huge folders and instant) or python3
apt-get install inotify-tools swaks
edit sendmail.sh
to your email providers setting, modify Subject and --to as well.
monitor.sh /path/to/monitor
- install python > 3.5
- adjust email settings and formatting
python3 scan.py /path/to/scan