SFTP - Create directory
SFTP - Create directory
Creates a new folder on the SFTP server at the given path. It can create the whole directory hierarchy at once when the recursive option is enabled, with no need to create each level by hand.
Options
Connection
Select the SFTP: Connect action that will be used to reach the server.
Path
Enter the full path of the new directory to create on the SFTP server.
Recursive
Defines whether the intermediate folders of the path are created automatically when they do not exist. Select Yes for recursive creation or No to create only the last level of the path.
Returns
Custom code
js
actions["action-id"].created // whether the directory was created or already existed (Text)
actions["action-id"].path // path of the directory created (Text)
Field selection
- created — result of the operation:
createdwhen the directory was created, oralready existswhen it already existed (Text) - path — full path of the directory on the SFTP server (Text)
Rules and Conditions
- The Connection and Path fields are required.
- With Recursive enabled, the whole folder hierarchy of the given path is created when it does not exist.
- Without Recursive, every intermediate folder of the path must already exist on the server.