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

  1. In From/To, select the Connection objects that connect to the source and destination hosts.

  2. Drag the List Directory command from the left pane and drop it onto the editor in the middle.

  3. In Path, do the following:

    1. 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.

    2. 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.

  4. In the Options section, if you do not want the Job to abort if this command fails, deselect Abort job on command failure.

  5. 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: