FTP - Create folder

Declaration

<AMFTP ACTIVITY="create_folder" FOLDER="text" SESSION="text" />

Related Topics   

Description

Creates a folder or sub-folder on the FTP server.

NOTE: An FTP session is required to run this activity. Use the FTP Logon activity to create a session.

Practical Usage

Used to create a folder or sub-folder on the FTP server so subsequent FTP operations can be performed such as uploading files to the newly created folder.

Parameters

Connection

Property

Type

Required

Default

Markup

Description

Session

Text

Yes

FTPSession1

SESSION="SessionName"

Specifies the session name (created by a previous FTP Log on step) that this activity should originate from. This permits several FTP activities to be linked to a specific session, thus, allowing multiple simultaneous FTP transfers to take place within a single task.  

Folder

Property

Type

Required

Default

Markup

Description

Remote folder

Text

Yes

(Empty)

FOLDER="/home/folder1"

Specifies a fully qualified UNIX style path to the folder in which to create  For example if the following is entered in this parameter:

/home/my_folders/folder_1

This activity will create a subfolder named folder_1 in the /home/my_folders/ directory.

 

Description

Error Causes

On Error

Example

NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description:

This sample task simply logs onto an FTP site, creates a "/home/ftp" folder and logs out. In order for this task to work in your environment, please make the appropriate modifications in the properties of each activity.

<AMFTP ACTIVITY="logon" SERVER="YourFTPHost" USERNAME="YourUsername" PASSWORD="AM1MoyAfpKHilpraHBIX6ei1E/2ZhM5egRHalje6g6YThM=aME" SESSION="FtpSession1" />

<AMFTP ACTIVITY="create_folder" FOLDER="/home/ftp" SESSION="FtpSession1" />

<AMFTP ACTIVITY="logoff" SESSION="FtpSession1" />