> For the complete documentation index, see [llms.txt](https://docs.appmixer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmixer.com/connector-configuration/utils/ftp/create-directory.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.appmixer.com/connector-configuration/utils/ftp/create-directory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
