Python watchdog Watch For the Creation of New File By Pattern Match
问题 I'm still learning Python so I apologize up front. I am trying to write a watcher that watches for the creation of a file that matches a specific pattern. I am using watchdog with some code that is out there to get it watch a directory. I don't quite understand how to have the watcher watch for a filename that matches a pattern. I've edited the regexes=[] field with what I think might work but I have not had luck. Here is an example of a file that might come in: Hires For Monthly TM_06Jan