diff --git a/vigil b/vigil index e9abba2..f9978f5 100755 --- a/vigil +++ b/vigil @@ -850,7 +850,8 @@ def is_path_excluded(path): def make_watch_manager(root_path, callback): watch_manager = pyinotify.WatchManager() event_mask = (pyinotify.IN_CREATE | pyinotify.IN_DELETE | - pyinotify.IN_CLOSE_WRITE | pyinotify.IN_ATTRIB) + pyinotify.IN_CLOSE_WRITE | pyinotify.IN_ATTRIB | + pyinotify.IN_MOVED_FROM | pyinotify.IN_MOVED_TO) watch_manager.add_watch(root_path, event_mask, rec=True, auto_add=True, proc_fun=callback, exclude_filter=lambda path: is_path_excluded(path))