예제 #1
0
 def __init__(self, root_dirs, worker, log):
     WatcherBase.__init__(self, worker, log)
     self.client_sock, self.srv_sock = create_sock_pair()
     self.fd_map = {}
     for d in frozenset(root_dirs):
         w = INotifyTreeWatcher(d, self.ignore_event)
         self.fd_map[w._inotify_fd] = w
예제 #2
0
 def __init__(self, root_dirs, server, log):
     WatcherBase.__init__(self, server, log)
     self.fd_map = {}
     for d in frozenset(root_dirs):
         w = INotifyTreeWatcher(d, ignore_event)
         self.fd_map[w._inotify_fd] = w