FTP - Create Folder |
<AMFTP ACTIVITY="create_folder" FOLDER="text" /> |
Description:
Creates a folder or sub-folder on the FTP server.
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
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
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. |
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" /> <AMFTP ACTIVITY="create_folder" FOLDER="/home/ftp" /> <AMFTP ACTIVITY="logoff" /> |