I'm on a mac. My program monitors a directory, and I already have listeners in place for on_created
and on_deleted
, but I need to also detect when a file is saved and run a different function then. Is this possible using watchdog without platform-specific tools?
[NOTE] I know that I can use
on_modified
handler function, but that is also called when a file is created. I only want to detect when the content of the file changes, not when a file is created or deleted
[NOTE] note also that I need to watch a whole directory and all subdirectories and not just a single file