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
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