# File exists

## ![](/files/izjHrAleXmSup8c3n0Lr) File exists

### Description <a href="#description" id="description"></a>

The File Exists transforms verifies the existence of a file. The filenames to check are read from pipeline fields.

The transform outputs a boolean flag field, indicating whether a file exists or doesn’t.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

| Option                 | Description                                                                                                               |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Transform name         | Name of the transform; This name has to be unique in a single pipeline                                                    |
| Filename field         | The input field that will contain the filename at runtime                                                                 |
| Result fieldname       | The name of the field that will contain the boolean flag.                                                                 |
| Add filename to result | Enable this option if you want to add the filename to the list of filenames that can be used in the next workflow action. |
| Include file type      | Include the file type in a field.                                                                                         |
| File type field        | The name of the field that will contain the file type as a String: "file", "folder", "imaginary"                          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/fileexists.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
