Feedback

  • Contents
 

Directory List

This File I/O tool, given an absolute, relative, or UNC path, returns a list of files contained in a specified directory.

Inputs

Directory Path

The path to, and name of, a directory. This value can be an absolute path, a relative path, or a UNC path.

Directory Mask

Use this parameter to pass in any wildcards. Acceptable wildcards include the * symbol and the ? symbol. * represents one or more of any character, ? represents a single character. If you wanted a list of all handlers in a specified directory, you would type *.ihd in the Directory Mask field. If you wanted all handlers that started with the letter A, then you would type A*.ihd in the Directory Mask field. If you wanted all handlers with five character file names that start with A, you would type A????.ihd in the Directory Mask field.

By default, the Directory Mask value is *.*, returning all files in the specified directory.

Outputs

Directory List

A list of string value containing the names of any files in the specified directory. These files match any Directory Mask criteria.

Exit Paths

Success

This step takes the Success exit path if either of the following is true:

  • The directory is found and is not empty.

  • The directory exists, but is empty, and a Directory Mask input value of "*.*" is specified.

Failure

This step takes the Failure path if either of the following is true:

  • The directory does not exist.

  • The directory exists, but is empty, and a Directory Mask input value of *.pdf, *.txt, etc., is specified.