---
schema_version: "1"
id: 4d7f404ccb4f9e50695f0de78fbc384cb911ea544f7958c6376d401e014dc8b5
title: SFTP Connector 使用したディレクトリの作成の例
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/sftp-connector/2.5/sftp-create-directory.md
canonical_url: https://docs.mulesoft.com/jp/sftp-connector/2.5/sftp-create-directory
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d4feb7a46783dfbb0d50fe83ad03b33758aefef696ed0c7aa1ba0d3ac1c08455
description: MuleSoft Documentation Site
release: "2.5"
latest: true
---
# SFTP Connector 使用したディレクトリの作成の例

SFTP 用 Anypoint Connector (SFTP Connector) の ​**Create directory**​ 操作を使用すれば、特定の名前のディレクトリを作成できます。

ディレクトリを作成する理由がすぐにコンテンツをディレクトリに書き込む、コピーする、または移動することである場合、​**\[Create parent directories (親ディレクトリを作成)\]**​ 項目を ​**TRUE**​ に設定した状態で ​**Write**​、​**Copy**​、または ​**Move**​ 操作を使用してください。

## [](#studio-で-create-directory-操作を設定する)Studio で Create Directory 操作を設定する

Studio で ​**Create directory**​ 操作を追加および設定する手順は、次のとおりです。

1. **\[Mule Palette (Mule パレット)\]**​ ビューで「​`sftp`​」を検索し、​**\[Create directory\]**​ 操作を選択します。
2. **\[Create directory\]**​ 操作を Studio キャンバスにドラッグします。
3. 操作の設定画面の ​**\[General (一般)\]**​ タブで、​**\[Connector configuration (コネクタ設定)\]**​ 項目の横にあるプラス記号 (​**+**​) をクリックし、グローバル要素設定項目にアクセスします。
4. 接続情報を指定し、​**\[OK\]**​ をクリックします。
5. **\[Directory path (ディレクトリパス)\]**​ 項目を、新しいディレクトリのパス名に設定します (例: `~/newFolder`​)。

次のスクリーンショットは、​**Create directory**​ 操作の設定を示しています。

![Studio の Create directory 操作の設定](/mulesoft/current/ja-jp/sftp-connector/2.5/_images/sftp-create-directory-operation.png)

Figure 1. Create directory 操作の設定

XML エディターでは、​`<sftp:create-directory>`​ 設定は次のように記述されます。

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

## [](#関連情報)関連情報

- [SFTP Connector の例](https://docs.mulesoft.com/jp/sftp-connector/2.5/sftp-examples)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)