# Process files

## <img src="/files/x5rmIK57aaBpcNEJBOoI" alt="" data-size="line"> Process files

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

The Process Files transform copies, moves or deletes files by giving the source and target file names in the data stream.

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

### Options

| Option                        | Description                                                                                                                                       |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name                | Name of the transform.                                                                                                                            |
| Operation                     | This defines the operation: Copy, Move or Delete                                                                                                  |
| Create target parent folder   | When this option is checked, the target parent folder is created. Otherwise it throws an exception when the target parent folder is not existing. |
| Overwrite target file         | When this option is checked and the target file exists, it will be overwritten. Otherwise it will not be overwritten and silently ignored.        |
| Add target filename to result | When this option is checked, add the copied, moved or deleted files to the list of result files.                                                  |
| Set simulation mode           | For testing purposes: No action will be taken at the end and no file will be copied, moved or deleted.                                            |
| Source filename field         | This defined the field that contains the complete path to the source file for copy or move or the file to be deleted.                             |
| Target filename field         | This defined the field that contains the complete path to the target file. This field must not be given in the Delete mode.                       |


---

# 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/processfiles.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.
