Skip to content

List Files Activity

The List Files activity enables users to retrieve a list of file and folder names within a specified directory. This activity is essential for operations requiring an inventory of directory contents, providing structured data for further processing.

Field Description Requirement
Directory name The full path to the directory from which to list files and folders. Required
Dataset name The reference name for the dataset that will store the listed file and folder information. Required

Action Types & Examples

Full Directory Path

  • Format: string
  • Example Result: "C:\Temp\deneme" or "C:\Temp\test.xlsx"

File/Folder Name

  • Format: string
  • Example Result: "test" or "test.xlsx"

Type Indicator

  • Format: string
  • Example Result: "Directory" or "File"

Implementation Examples

Field Setup - Directory name: C:\Temp\Test - Dataset name: fileListingResult

Execution Parameters - Iterate through dataset: For Each row in fileListingResult - Access full path: row.ColumnA - Access file/folder name: row.ColumnB - Access type: row.ColumnC

Technical Notes

The activity generates a dataset containing the listed files and folders. This dataset can be iterated through using a loop activity to process each entry individually. The dataset typically includes columns for the full path (Column A), file/folder name (Column B), and type (Column C, indicating "Directory" or "File").