> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
