Automated Folder Watching
I used file watching loops for almost my entire career (professionally and personally). It’s always been a for loop or os.walk or similar (C/C++/Python/SBCL/…), and it was always lots of boilerplate code. Not difficult, just a bunch of lines to maintain and make sure they catch all corner cases. While setting up this blogging pipeline (thank goodness I can just concentrate on the typing part and deployment happens automagically) I got to learn about gorakhargosh’s watchdog Python library. You should totally check out their GitHub page for the project! It’s a bit dated, but does the job perfectly fine! ...