Skip to main content

List SFTP File

The List SFTP File activity lists files on a remote SFTP server.

Configuring the List SFTP File Activity

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

Configuration

FieldRequiredDescriptionExample
NameRequiredName of the step, should be unique within this workflow.MyActivity
DescriptionOptionalDescribe the purpose or function of this step.Reads a file from S3
SFTP ConnectionRequiredDrag and drop a SFTPConnection resource from the workspace.
SFTP Auth ContextOptionalAuthorization context to use for connecting to SFTP.
DirectoryOptionalPath to the directory on the SFTP server. (mapping supported)my-data-bucket
File PathOptionalSpecific file path to filter (mapping supported)data/reports/2024/
PatternOptionalPattern to match files, e.g., *.txt (mapping supported)*.csv
PrefixOptionalPrefix to filter files like a folder path. (mapping supported)logs/

Advanced

FieldRequiredDescriptionExample
Sort ByOptionalChoose how to sort the results Options: Name, Size, Date Modified, Path.
Max ResultsOptionalMaximum number of files to return.100
DescendingOptionalCheck to sort results in descending order.
RecursiveOptionalCheck to list files recursively inside folders.
Enable RetryOptionalRetry after Failure.
Retry Policy ResourceOptionalDrag and drop a Retry Policy resource from the workspace.

Input

FieldRequiredData TypeDescriptionExample
Working DirectoryOptionalStringRoot directory on the SFTP server where the search begins.my-data-bucket
File PathOptionalStringPath on the SFTP server to start listing files from.data/reports/2024/
PatternOptionalStringPattern to match files (e.g., .txt, file_.csv).*.csv
PrefixOptionalStringPrefix to filter files (file names that begin with this prefix).logs/
Max ResultOptionalNumberMaximum number of results to return.
RecursiveOptionalBooleanWhether to list files recursively in subdirectories.
DescendingOptionalBooleanWhether to return the list of files in descending order.

Output

The output fields are dynamically populated based on the activity result.