# Check if file is locked

## ![](/files/cOcA8YZ7AlQIuBgsG2Dm) Check if file is locked

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

The Check If A File Is Locked transform tries to determine if a file is locked by another process by trying to move the file to itself.

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

### Options

* transform name: the transform name, unique in a pipeline
* Filename field: the name of the input field that will contain the names of the files during execution.
* Result fieldname: the name of the Boolean output field that will contain true or false depending on whether or not the file is locked or not.
* Add filename to result: check this if you want to add the checked file-names to the list of files in the pipelines result.


---

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