# Check if a folder is empty

### Description

The `Check if a folder is empty` action verifies if a folder is empty and that there are no regular files or sub-folders in the folder.

### Options

| Option             | Description                                                                                    |
| ------------------ | ---------------------------------------------------------------------------------------------- |
| Action name        | The name of the workflow action.                                                               |
| Folder name        | The name of the folder to verify for emptiness.                                                |
| Include subfolders | Check if there are subfolders in the folder to check.                                          |
| Limit search to    | Limits the search for files to those with a certain wildcard (regular expression)              |
| Wildcard           | The wildcard (regular expression) to limit the files to look for with, for example: .\*\\.txt$ |


---

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