By reading this piece, you will learn to detect changes made to existing files in your Python application. We are going to use a well-maintained module called watchdog. Based on the official documentation, watchdog is
“… a Python API library and shell utilities to monitor file system events.”
It supports both Python 2.7 and 3.4+. However, you are recommended to use watchdog < 0.10.0 for older version. In this tutorial, I am going to cover only the Python API library. Let’s proceed to the next section and start installing the necessary modules.

#tutorial #python #programming #filesystem #devops

How to Monitor File System Events in Python
1.60 GEEK