我已经创建了一个FileSystem观察者,并注册了2个事件。一个用于创建,另一个用于更改。program.FileSystemWatcher_Created);在同一个程序中StreamWriter outfile = new StreamWriter(filename)) outfile.Write("Some really long str
我正在尝试使用Python的看门狗模块侦听文件系统的更改。我想监视来自两个不同目录的文件。对于一个文件手表,我使用了来自watchdog.events的watchdog.events。我想对多个目录使用相同的方法。代码:from watchdog.observers import Observer time