FTP Jobs: List Directory Command Settings
This topic describes how to use the FTP List command. This command allows you to list files in a directory and writes them to the Job report.
To List Files in a Directory
-
In From/To, select the Connection objects that connect to the source and destination hosts.
-
Drag the List Directory command from the left pane and drop it onto the editor in the middle.
-
In Path, do the following:
-
Select a Connection object. This list displays the connection objects that you have selected at the top of the editor for the source and target hosts.
You can browse to a file or directory using the browse icon. When you click it, a pop-up dialog opens that allows you to browse to a file or directory on the host. For more information, see Browsing to Directories and Files.
-
In Path, specify the absolute or relative path to change to. You can use * (any number of characters) and ? ()one character) wildcards here.
Examples:
-
*.txt lists all files with a .txt extension.
-
report.* lists all files called report with any extension.
-
quarter? lists all files called quarter followed by a single character.
-
???? lists all files that are exactly four characters long.
-
-
-
In the Options section, if you do not want the Job to abort if this command fails, deselect Abort job on command failure.
-
Optionally add a description of the command under Description. The text you enter here is not written to the Job report. To write a message to the Job report, use an Echo command. For more information, see FTP Jobs: Echo Command Settings.
See also: