# Evaluate files metrics

### Description

The `Evaluate files metrics` action can be used to evaluate the size or count of files.

### Options

#### General tab

| Option                          | Description                                                                                                                                                                                |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Action name                     | The name of the workflow action.                                                                                                                                                           |
| Source files                    | <p>The source type.</p><ul><li>Files/Folders</li><li>Filenames result</li><li>Previous result row</li></ul><p>Based on the selected option, the fields below will be enabled/disabled.</p> |
| Wildcard                        | A regex wildcard.                                                                                                                                                                          |
| File Result field               |                                                                                                                                                                                            |
| Wildcard result field           |                                                                                                                                                                                            |
| Include subfolders result field |                                                                                                                                                                                            |
| Evaluate                        | <p>Type of evaluation</p><ul><li>Total files size</li><li>Total file count</li></ul>                                                                                                       |
| File/Folder source              | The file or folder path.                                                                                                                                                                   |
| Wildcard                        | A regex wildcard.                                                                                                                                                                          |
| Add                             | Add the source to the Files/Folders list.                                                                                                                                                  |
| File…​                          | Browse the filesystem for a file.                                                                                                                                                          |
| Folder…​                        | Browse the filesystem for a folder.                                                                                                                                                        |
| Files/Folders                   | A list of files and/or folders.                                                                                                                                                            |
| Delete                          | Delete a source from the list.                                                                                                                                                             |
| Edit                            | Edit a source.                                                                                                                                                                             |

After specifying a folder and wildcard (regular expression), use the `Add` button to add your file/folder selection to the table. Use the `Delete` or `Edit` buttons to remove or edit selected lines in the table.

#### Advanced tab

| Option       | Description                                                                                                                                                                                                                                                                                     |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Scale        | <ul><li>Bytes</li><li>KBytes</li><li>MBytes</li><li>GBytes</li></ul>                                                                                                                                                                                                                            |
| Success when | <ul><li>If value is equal to</li><li>If value is equal to</li><li>If value is small than</li><li>If value is smaller or equal</li><li>If value is greater than</li><li>If value is greater or equal</li><li>If value is between</li><li>If value in list</li><li>If value not in list</li></ul> |
| Value        | The value to compare.                                                                                                                                                                                                                                                                           |


---

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