Python Forum
Code to check folder and sub folders for new file and alert - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Code to check folder and sub folders for new file and alert (/thread-35981.html)



Code to check folder and sub folders for new file and alert - fioranosnake - Jan-06-2022

Hi Experts!

Can anyone advise if there is any way to scan a folder and sub folders for example, every hour, and send an email via SMTP with the filename and location?

Many thanks,
Fiorano


RE: Code to check folder and sub folders for new file and alert - Larz60+ - Jan-06-2022

show us your attempt. we can help with that
please read: No effort questions


RE: Code to check folder and sub folders for new file and alert - deanhystad - Jan-06-2022

There are lots of articles online similar to this:

https://michaelcho.me/article/using-pythons-watchdog-to-monitor-changes-to-a-directory