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


---

# 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.appmixer.com/connector-configuration/utils/ftp/create-directory.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.
