看门狗在复制时触发重复/重复事件

时间:2017-04-03 20:54:53

标签: python-watchdog

我的linux(CentOS 6.7)中有一个Samba Shared文件夹,我试图将一个文件从windows复制到映射路径:Y:/ callcenter(samba shared),当我将一个jar文件复制到此文件夹看门狗重复事件复制很多时间...

on_created(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileCreatedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x162ec10>, event=<FileModifiedEvent: src_path='./333.jar'>)

直到结束......

这是我的命令

watchmedo log --patterns="*.jar" --ignore-directories --recursive

有谁知道解决方案?

0 个答案:

没有答案