Skip to main content

Read FTP File

Read FTP File returns the contents of a remote file through an FTP Connection resource.

The file is located by Directory, File Path and File Name, each of which can also be supplied at runtime through the Input mapping.

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 the file is in.
File PathOptionalPath to the file within the working directory.
File NameOptionalName of the file to read.

Advanced

FieldRequiredDescription
EncodingOptionalText encoding for the returned content. Defaults to UTF-8.
RetryOptionalRetry the operation on failure.
Retry PolicyOptionalThe retry policy resource to apply.

Input

FieldData TypeDescription
filePathStringFull path to the file in the storage location to be read.
fileNameStringFile name. Used with the working directory when filePath is not provided.
streamingBooleanWhether the file should be read in streaming mode.

Output

The activity returns a readFileOutput object.

FieldData TypeDescription
contentStringThe file's contents, decoded using Encoding.
contentLengthIntegerLength of the content returned.
fileNameStringName of the file read.
filePathStringPath of the file read.
createdTimeStringWhen the file was created.
lastModifiedStringWhen the file was last modified.