FTP Log On Icon

FTP - Create Folder

Declaration

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

See Also

FTP - Advanced | FTP - Change Folder | FTP - Create Folder | FTP - Delete | FTP - Download | FTP - FXP | FTP - Log Off | FTP - Log On | FTP - Remove Folder | FTP - Rename | FTP - Synchronize Folders | FTP - Upload

Description

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

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

Folder Properties

Property
Type
Required
Default
Markup
Description

Remote Folder

Text

Yes

(Empty)

FOLDER="/home/folder1"

Specifies a fully qualified UNIX style path to the FTP server folder 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.

Session Properties

Property
Type
Required
Default
Markup
Description

Session

Text

Yes

FTPSession

SESSION="SessionName"

Specifies the session name (created in 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.  

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane 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" />

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

<AMFTP ACTIVITY="logoff" />

 

↑ Top of Page