Skip to main content
Version: 4.2.5

SFTP/FTP Reader

Description​

Regularly polls an SFTP or FTP directory for files, and matches the files against specified criteria. Files matching the criteria are downloaded.

Assembly: iCore.Workflow.Activities.Ftp
Category: SFTP/FTP

Arguments​

NameTypeDescription
ConnectionIFileTransferConnectionThe connection on which to start a reader.
Delete server fileBooleanSpecifies if the file should be deleted from the server after being downloaded.
Error on timeoutBooleanSpecifies if an error should be raised when timeout is reached.
Filter optionsRegexOptionsOptions for pattern matching in filter.
Filter patternStringRegular expression applied as filter on files returned by the server for example \b[a-z0-9]+.txt. The expression is not case sensitive.
Local directoryStringThe directory where the downloaded file should be stored.
Local filenameStringThe name that the downloaded file should have when stored.
Move file toStringIf set, the file will be moved to the specified location on the server before being downloaded.
Rename fileBooleanSpecifies if the file should be renamed on the server before it is downloaded.
Scan directoryStringThe directory of the SFTP or FTP server where the reader should scan for files.
Scan filterStringThe filter that will be applied (according to 'Scan filter options'). Filter examples: *.* or *.xml. Default: “*”.
Scan filter optionsFileTransferFilterOptionSpecifies how the scan filter is used.
Scan intervalInt32Time interval in seconds between file searches. Default: 30
Settle timeInt32The time in milliseconds that a file must have been untouched by any Events before it can be processed. Default: 0
TimeoutTimeSpanThe timeout for getting the next file. If timeout is reached and 'Error on timeout' is set to False, the activity will complete with out arguments having null values.
Local file pathStringThe path to the stored local file.
Local filenameStringThe name of the stored local file.
Original file pathStringThe path to the original file on the server.
Original filenameStringThe name of the original file on the server.
Processing file pathStringThe path to the processing file on the server.
Processing filenameStringThe name of the processing file on the server.

See Also​

SFTP/FTP Reader Template