FTP - Create Folder
Declaration
<AMFTP ACTIVITY="create_folder" FOLDER="text" />
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.
Session Parameters
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. |
Folder Parameters
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 tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.
Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)
On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)
Example
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" /> <AMFTP ACTIVITY="create_folder" FOLDER="/home/ftp" /> <AMFTP ACTIVITY="logoff" />