Skip to main content

List FTP File

List FTP File returns the entries in a remote directory through an FTP Connection resource.

Two filters narrow the result: Pattern matches file names as a glob or regular expression, and Prefix matches names that start with a given string. Max Results bounds how many entries come back.

The activity has four tabs: Configuration, Advanced, Input, and Output.

Configuration

FieldRequiredDescription
NameRequiredName of the step, unique within this workflow.
DescriptionOptionalDescribe the purpose of this step.
FTP ConnectionOptionalResource to connect to the FTP or FTPS server.
FTP Auth ContextOptionalAuthorization context used for the FTP connection.
DirectoryOptionalRemote directory to list.
File PathOptionalPath within the working directory.
PatternOptionalGlob or regular expression filter on file names.
PrefixOptionalOnly names starting with this prefix.

Advanced

FieldRequiredDescription
Sort ByOptionalName, Size, or Last Modified.
Max ResultsOptionalMaximum number of entries returned. Defaults to 10.
DescendingOptionalReverse the sort order.
RecursiveOptionalInclude entries in subdirectories.
RetryOptionalRetry the operation on failure.
Retry PolicyOptionalThe retry policy resource to apply.

Input

FieldRequiredDescription
InputsOptionalRuntime overrides of the path and filter fields.

Output

The activity returns a listFileOutput object.

FieldData TypeDescription
filesArrayThe directory entries returned.
totalFilesIntegerNumber of entries returned.
filePathStringPath that was listed.