# Create Directory

### Overview

The **Create Directory Component** allows users to create a directory on an FTP server, ensuring that the specified path exists by creating any missing subdirectories.

### Usage

This component connects to an FTP server and creates a directory at the specified path, making it useful for workflows that require structured file storage.

#### Input Ports

| Port | Description                            |
| ---- | -------------------------------------- |
| `in` | Receives the directory path to create. |

#### Output Ports

| Port  | Description                             |
| ----- | --------------------------------------- |
| `out` | Confirms successful directory creation. |

#### Properties

| Property | Type     | Description                                                                                         |
| -------- | -------- | --------------------------------------------------------------------------------------------------- |
| `path`   | `string` | The directory path to create. Missing parent directories will also be created if they do not exist. |

#### Processing Logic

1. **Establishes FTP Connection**: Connects to the FTP server using provided credentials.
2. **Creates Directory**:
   * Checks if the specified path exists.
   * If not, creates the directory and any required parent directories.
3. **Confirms Completion**: Returns a confirmation response upon successful directory creation.

#### Output Data Schema

| Property | Type     | Description                             |
| -------- | -------- | --------------------------------------- |
| `status` | `string` | Confirms successful directory creation. |

### Notes

* **Recursive Directory Creation**: Ensures all missing parent directories are created.
* **Secure FTP Connection**: Uses authentication details to establish a secure connection.
* **Ideal for Automated File Management**: Supports structured directory creation within FTP workflows.

This component is essential for workflows that require automated directory management on an FTP server.
