I\'m writing a watchdog in python with the watchdog module. Two different task will be performed whether the object is a file or a directory. My current program extends the