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

# addDirectory (Surround)

> Add a directory and all of its contents to the repository. Any sub repositories or files that do not already exist will be added. Target Properties Pr

Add a directory and all of its contents to the repository. Any sub repositories or files that do not already exist will be added.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Surround Executable</td><td>`FDSURROUND_EXE_PATH`</td><td>N</td><td>Path to the Surround executable. Required only if Surround is not on PATH.</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Surround Instance</td><td>`FDSURROUND_INP_INSTANCE_CODE`</td><td>Y</td><td>The Surround Instance to use.</td></tr><tr><td>Branch</td><td>`FDSURROUND_INP_BRANCH`</td><td>Y</td><td>The branch to add to.</td></tr><tr><td>Folder</td><td>`FDSURROUND_INP_FOLDER`</td><td>Y</td><td>The folder in Surround to add from.</td></tr><tr><td>Sub Directory</td><td>`FDSURROUND_INP_DESTINATION_SUBDIRECTORY`</td><td>N</td><td>The sub directory under the temp directory to add the files.</td></tr><tr><td>Comment</td><td>`FDSURROUND_INP_COMMENT`</td><td>N</td><td>Comment when adding the files. If none is provided will use 'add'.</td></tr></tbody></table>

# Artifacts

This operation doesn’t consume or produce any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

# Special Considerations

Any files that already exists will not be added or modified. This will also create any sub repositories needed.
