[英]Pyinotify — event raised from original path after directory renaming
I use pyinotify to monitor my file system. 我使用pyinotify监视我的文件系统。 The problem is when I rename a directory and create file in the renamed directory, the event is raised from original path(referred by
event.name
). 问题是当我重命名目录并在重命名的目录中创建文件时,该事件从原始路径引发(由
event.name
)。 Can't figure out what is wrong? 不知道出什么问题了吗? Any problem with the
add_watch
flag when initializing the watcher? 初始化观察程序时,
add_watch
标志有问题吗? Currently the flag is set as rec=True, auto_add=True
. 当前标志设置为
rec=True, auto_add=True
。
Thanks and best regards. 谢谢和最好的问候。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.