---
schema_version: "1"
id: 7af57c07620cd2d6c18bad4f45435b50f7f58be722873c8d1a5ea0bb4ecb60de
title: Create a Directory Using SFTP Connector Example
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/sftp-connector/latest/sftp-create-directory.md
canonical_url: https://docs.mulesoft.com/sftp-connector/latest/sftp-create-directory
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0ef70c08fc03d41d3255cdc9e39d4572365070e99114b427971cb7e9d6d00086
description: MuleSoft Documentation Site
release: "2.7"
latest: true
---
---
product: SFTP Connector
version: 2.7
is-latest-version: true
---

# Create a Directory Using SFTP Connector Example

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint Connector for SFTP (SFTP Connector) provides a **Create directory** operation that enables
you to create a directory of a given name.

If the reason for creating the directory is to immediately write, copy, or move content to the
directory, then use the **Write**, **Copy**, or **Move** operations with the **Create parent
directories** field set to **TRUE**.

## Configure the Create Directory Operation in Studio

To add and configure the **Create directory** operation in Studio, follow these steps:

1.  In the **Mule Palette** view, search for `sftp` and select the **Create directory** operation.

2.  Drag the **Create directory** operation onto the Studio canvas.

3.  In the **General** tab of the operation configuration screen, click the plus sign (**+**) next
    to the **Connector configuration** field to access the global element configuration fields.

4.  Specify the connection information and click **OK**.

5.  Set the **Directory path** field to the new directory’s path name, for example, `~/newFolder`.

The following screenshot shows the **Create directory** operation configuration:

![Create directory operation configuration in Studio](/mulesoft/current/en-us/sftp-connector/latest/_images/sftp-create-directory-operation.png)

Figure 1. Create directory operation configuration

In the XML editor, the `<sftp:create-directory>` configuration looks like this:

```xml
<sftp:create-directory doc:name="Create directory"  config-ref="SFTP_Config" directoryPath="~/newFolder"/>
```

## See Also

- [SFTP Connector Examples](https://docs.mulesoft.com/sftp-connector/latest/sftp-examples)

- [Salesforce Help](https://help.salesforce.com)
