FTP - Create folder

Declaration

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

Related Topics

Description

Creates a folder or subfolder 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 subfolder 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 - Logon step) where this activity originates. This permits several FTP activities to be linked to a specific session, 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 the folder to create. Enter a fully qualified UNIX style path manually in the provided text box or click the folder icon to open the FTP Browser which allows connection to the server in order to browse available files and folders.

If entered manually, use a fully qualified UNIX style path. 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:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task logs onto an FTP site, creates a /home/ftp folder, and then logs out.

Copy
<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" />