LIST
![]() |
Retrieves a directory listing from the file server. |
Supported Script Types
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Generic | Chat | Phone | Voicemail | Work Item |
Properties
- FilePath
- The file path and file pattern to list. It supports variables and wild cards. Asterisk (*) matches zero or more characters of any kind at that position. Question (?) matches exactly one character of any kind at that position. By default, *.*
For example, MailLog\*.eml would return all .eml files in the MailLog folder.
- ResultVar
- The name of the variable to contain the listing. Returned as an array (pipe delimited) – file1|file2|file3|file4|…. By default, FILES.
- CountVar
- The name of the variable to contain the number of files listed. By default, COUNT.
Branches
- Default
- The Default branch condition will be used unless another branch condition is met.
- OnError
- This branch condition will be triggered if any kind of invalid file pattern or file paths is entered. File names and paths are limited to certain valid characters and are enforced by the Microsoft APIs working in the background.
Tips and Tricks
- If you are looking for a file, such as a voice recording, use a WAIT action to give the script a few seconds to find the file.
- The file gets copied to the file server from the media server.
- The larger the file, the longer you will need to wait for the file.