Skip to main content

List File

The List File activity lists files in a specified directory on the local file system.

Configuring the List File Activity

To configure the List File activity, fill in the required fields in the activity panel.

Configuration

FieldRequiredDescriptionExample
NameRequiredUnique identifier for this activity stepMyActivity
DescriptionOptionalOptional description of the activity's purposeReads a file from S3
ResourceRequiredDrag and drop a ABSConnection resource from the workspace.
DirectoryOptionalBase directory to list files frommy-data-bucket
File PathOptionalOptional path to a specific file to retrievedata/reports/2024/
PrefixOptionalFilter files by name prefix (e.g., log_, report-)logs/
Max ResultsOptionalLimit the number of files returned (default: 100)100
Sort ByOptionalChoose how to sort the results Options: Name, Size, Date modified, Path.
RecursiveOptionalEnable to scan through all subdirectories
DescendingOptionalSort results in descending order

Input

FieldRequiredData TypeDescriptionExample
File PathOptionalStringFull path to a specific file or directory in the storage container.data/reports/2024/
PrefixOptionalStringFilter files by a specific name prefix (e.g., log_, report-).logs/
Max ResultOptionalNumberMaximum number of results to return. Defaults to 100 if not specified.
RecursiveOptionalBooleanEnable recursive search through subdirectories.
DescendingOptionalBooleanIf true, sort the file list in descending order.

Output

FieldRequiredData TypeDescriptionExample
PathOptionalString
FilesOptionalArray
Total FilesOptionalNumber0