# Check Files Locked

### Description

The `Check files locked` action loops over a list of files to check if they are locked by another process.

The way that it verified is by renaming a file to the same name as before.

On certain operating systems (MS Windows systems in particular) this operation will fail if the file is locked.

### Options

| Option                                   | Description                                                                                                    |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| Action name                              | The name of the workflow action.                                                                               |
| Settings: Include subfolders             | Enable this option to also check files in subfolders of specified folders                                      |
| Settings: Copy previous results to args? | Pass the result rows of a previous workflow action execution to the files list of this action.                 |
| Files/Folders                            | The files or folders to check.                                                                                 |
| Wildcard                                 | The wildcards are Java Regular expressions. For instance .\*\\.txt would check any file with a .txt extension. |


---

# 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/workflows/actions/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.
