Watchdog - How to get the process name or PID number

40 views
Skip to first unread message

Bruno Caseiro

unread,
Oct 13, 2020, 10:49:26 AM10/13/20
to watchdog-python
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 awesome.. 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 making changes 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

Marc Jonkers

unread,
Sep 18, 2021, 2:48:28 PM9/18/21
to watchdog-python
Also looking for this

Op dinsdag 13 oktober 2020 om 16:49:26 UTC+2 schreef baca...@gmail.com:
Reply all
Reply to author
Forward
0 new messages