Watchdog - How to identify the process which made a change to a monitored file - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: Watchdog - How to identify the process which made a change to a monitored file (/thread-30274.html) |
Watchdog - How to identify the process which made a change to a monitored file - bcaseiro - Oct-13-2020 Hello Guys, I understand we can use watchdog to monitor new files being created or modified in a certain folder for instance and that's okay. However, I did not find in the watchdog function, how we can tell which process is making the change to that folder or file. For instance, let's say I have a folder called c:\mylogs . I wanted to generate an alert if a process different than "mysoftware.exe" is writting to that folder, that's the idea. If it's not possible with python and you know which language I could use to do that, please let me know and I will research. thanks, Bruno |