aionotify/base.py
def _setup_watch(self, alias, path, flags):
        """Actual rule setup."""
        assert alias not in self.descriptors, "Registering alias %s twice!" % alias
        wd = LibC.inotify_add_watch(self._fd, path, flags)
        if wd < 0:
            raise IOError("Error setting up watch on %s with flags %s: wd=%s" % (
                path, flags, wd))
        self.descriptors[alias] = wd
        self.aliases[wd] = alias
def _setup_watch(self, alias, path, flags):
        assert alias not in self.descriptors, "Registering alias %s twice!" % alias
        wd = LibC.inotify_add_watch(self._fd, path, flags)
        if wd < 0:
            raise IOError("Error setting up watch on %s with flags %s: wd=%s" % (
                path, flags, wd))
        self.descriptors[alias] = wd
        self.aliases[wd] = alias
def _setup_watch ( self , alias , path , flags ) : assert alias not in self . descriptors , "Registering alias %s twice!" % alias wd = LibC . inotify_add_watch ( self . _fd , path , flags ) if wd < 0 : raise IOError ( "Error setting up watch on %s with flags %s: wd=%s" % ( path , flags , wd ) ) self . descriptors [ alias ] = wd self . aliases [ wd ] = alias
Actual rule setup.
Actual rule setup .