TeleFlow Step 0355

TeleFlow Step 0355

From TeleFlow

Jump to: navigation, search

Image:Iv_355.gif Scan Folder Step
Gather a list of all files in a directory and/or a count of files in a directory.

If desired, the Image:Iv_380.gif Parse step can be used to read each filename one at a time (in a programmatic loop) from the variable containing the file list. Each file in the list is separated by a linefeed character. The @LINEFEED system variable contains a single linefeed character, which you can use in the "Search for Text String" field of the Parse step.

Properties

Scan directory (folder): A valid directory path to find files in. e.g.: C: \VoiceMail\NewMessages or @MessagesDirectory

With file mask (eg: *.txt): A file mask to limit the file names returned by the step. Supports wildcard substitution (I.e. Use ? to indicate any single character, and * to indicate any number of different characters). To return all file names, use '*.*'.

Variable to receive directory list: The variable to receive the directory file list into.

Variable to receive directory count: The variable to receive the total number of files located in the directory.

Action Steps

Image:Iv_930.gif Fail: The directory scan failed. This may occur for a number of reasons, but the most likely causes are that directory name was not valid, or the directory does not exist.

Related Steps

Image:Iv_350.gif Create Folder
Image:Iv_380.gif Parse