def rule(event):
    if all(
        [
            event.deep_get("type", default="") == "PATH",
            "/." in event.deep_get("name", default=""),
            not any(
                [
                    "/.cache/" in event.deep_get("name", default=""),
                    "/.config/" in event.deep_get("name", default=""),
                    "/.pyenv/" in event.deep_get("name", default=""),
                    "/.rustup/toolchains" in event.deep_get("name", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
