def _update(self, event):

        path = event.name

        if self.ignore and self.ignore(path):
            return

        logging.debug("MacListener.update %s", event)

        result = {
            'added': [],
            'deleted': [],
            'changed': [],
        }

        if os.path.exists(path):

            seconds_since_created = get_creation_time(os.path.realpath(path)) - int(time.time())

            if seconds_since_created < 1.0:
                result["added"].append(path)
            else:
                result["changed"].append(path)
        else:
            result["deleted"].append(path)

        self.f(result)
dataset/ETHPy150Open koenbok/Cactus/cactus/listener/mac.py/FSEventsListener._update/swapped operands of `-`