---
title: RuleFileExistence enum | Wartiva GraphQL API
description: Whether a FILE rule requires its paths to be present or absent on each endpoint. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/rule-file-existence.html
updated: 2026-10-07
---

Policies and findings · GraphQL enum

# `RuleFileExistence` enum

Whether a FILE rule requires its paths to be present or absent on each endpoint.

## Values

| Enum Value | Description |
|---|---|
| `MUST_EXIST` | An endpoint fails when none of its collected paths match the rule's glob. An endpoint no path sensor has collected on isn't judged. |
| `MUST_NOT_EXIST` | An endpoint fails when any of its collected paths match the rule's glob. |

## Used by

- [`RuleBodyFile`](https://wartiva.com/api-docs/types/rule-body-file.html) type: The body of a FILE rule.
- [`RuleBodyFileInput`](https://wartiva.com/api-docs/types/rule-body-file-input.html) input: Input variant of RuleBodyFile.

## Example

### Example

```json
"MUST_EXIST"

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
