# CreateDirectory

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.Files/tree/main/Frends.Files.CreateDirectory>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                 | Description                                                                                       |
| -------------------- | ------------------------------------------------------------------------------------------------- |
| Directory : `String` | <p>Directory path.</p><p><br>Default: <code>"c:\temp"</code><br>Example: <code>C:\Temp</code></p> |
| {% endtab %}         |                                                                                                   |

{% tab title="Parameter: Options" %}

| Name                                                    | Description                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| UseGivenUserCredentialsForRemoteConnections : `Boolean` | <p>If set, allows you to give the user credentials to use to create directories on remote hosts.</p><p>If not set, the agent service user credentials will be used.</p><p>Note: For creating directories on the local machine, the agent service user credentials will always be used, even if this option is set.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p> |
| UserName : `String`                                     | <p>This needs to be of format domain\username</p><p><br>Default: <code>"domain\username"</code><br>Example: <code>Domain\Username</code></p>                                                                                                                                                                                                                                           |
| 🗝Password : `String`                                   | <p>Password of user</p><p><br>Default: <code>-</code><br>Example: <code>Password123</code></p>                                                                                                                                                                                                                                                                                         |
| {% endtab %}                                            |                                                                                                                                                                                                                                                                                                                                                                                        |

{% tab title="Result: Result" %}

| Name            | Description                                                            |
| --------------- | ---------------------------------------------------------------------- |
| Path : `String` | <p>Path of directory<br>Example: <code>C:/User/NewDirectory</code></p> |
| {% endtab %}    |                                                                        |

{% tab title="Changelog" %}

## Changelog

### \[1.1.0] - 2025-03-19

#### Changed

* Update packages: Newtonsoft.Json 12.0.1 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.7.0 -> 17.13.0 MSTest.TestAdapter 2.1.2 -> 3.8.3 MSTest.TestFramework 2.1.2 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0 RichardSzalay.MockHttp 6.0.0 -> 7.0.0 xunit.extensibility.core 2.4.2 -> 2.9.3

### \[1.0.0] - 2023-03-07

#### Added

* Initial implementation of Frends.Files.CreateDirectory.
  {% endtab %}
  {% endtabs %}
