Skip to content

List Files Activity

The List Files activity enables users to retrieve the names of files located within a specified directory. This activity processes the designated path and generates a dataset containing the list of all file names found.

Field Description Requirement
Connection name Reference name of the connection to be used. Optional
Directory name The full path of the directory to list files from. Required
Dataset name The reference name for the dataset that will store the list of file names. Required

Action Types & Examples

Retrieve File List

  • Format: List of strings
  • Example Result: ftpList

Implementation Examples

Field Setup - Connection name: ${ftpConnection} - Directory name: C:RobustaTempExpressInvoice - Dataset name: ftpList

Execution Parameters - Invoke-Activity -Name "List Files" -Parameters @{Connection = $ftpConnection; Directory = "C:RobustaTempExpressInvoice"; OutputDataset = "ftpList"}

Technical Notes

When specifying the Directory name, ensure the path does not include a trailing slash. For example, use C:RobustaTempExpressInvoice instead of C:RobustaTempExpressInvoice.