> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# saveReports

> Copies report file(s) and folder(s) from the temp folder, FD TEMP DIR , to the reports folder, FD REPORTS DIR . Use this operation after a build, scan

Copies report file(s) and folder(s) from the temp folder, `FD_TEMP_DIR`, to the reports folder, `FD_REPORTS_DIR`. Use this operation after a build, scan, or other workflow step that writes report files under temp so they are saved with the workflow execution and visible on the execution Reports tab.

The plugin provides the ability to transfer files using a filter. The filter allows the user to enter multiple wildcard selection filters allowing very flexible lists of files to copy to the reports folder.

# Inputs

<table><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Source Subfolder</td><td>`FDFILE_INP_SOURCE_SUBFOLDER`</td><td>No</td><td>The `FD_TEMP_DIR` sub-folder to copy file(s) from. If not specified, all files in `FD_TEMP_DIR` are eligible for copy.</td></tr><tr><td>File Filter</td><td>`FDFILE_INP_FILE_FILTER`</td><td>No</td><td>Wildcard compatible expression to select file(s). You can enter multiple filter expressions separated by ##. Leave empty to select all files. The ## performs an OR expression. This will filter Files or Directory names but not the path.</td></tr><tr><td>File Exclude Filter</td><td>`FDFILE_INP_FILE_FILTER_EXCLUDED`</td><td>No</td><td>Wildcard compatible expression to exclude file(s) OR folders. You can enter multiple filter expressions separated by ##. Leave empty to exclude no files. The ## performs an OR expression.</td></tr><tr><td>Target Subfolder</td><td>`FDFILE_INP_TARGET_SUBFOLDER`</td><td>No</td><td>The sub-folder in the reports folder where file(s) are to be copied.</td></tr><tr><td>Clean Directory</td><td>`FDFILE_INP_CLEAN_DIRECTORY`</td><td>No</td><td>When enabled, clears the target path before copying files.</td></tr></tbody></table>

# Endpoint Selection

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the Target. Selecting a specific resource will result in selection of endpoints associated to the Target which have that resource defined.

# Endpoint Execution

This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where previous step may have executed. Changing this value to "All" will result in execution on all selected endpoints.
