For the complete documentation index, see llms.txt. This page is also available as Markdown.

ReadFile

Reads file from the FTPS server.

Task version: 1.0.0

Required Frends version: 5.1+

Required .NET version: 6.0, standard2.0

Compatible Agents: Crossplatform, Legacy

Source code: https://github.com/FrendsPlatform/Frends.FTP

Task Parameters

Name
Description

Address : String

FTP(S) host address

Default: - Example: my.ftp.server.com

Port : Int32

Port number to use in the connection to the server.

Default: 21 Example: 21

UserName : String

Username to use for authentication to the server. Note that the file endpoint only supports

username for remote shares and the username must be in the format DOMAIN\Username.

Default: - Example: myUsername

🗝Password : String

Password to use in the authentication to the server.

Default: - Example: myPassword

TransportType : FtpTransportType

Type of transfer: 'Ascii' sends files as text and must only be used for sending ASCII text files. 'Binary' (default) sends files as raw data and should be used for sending e.g. UTF-encoded text files

Possible values:

  • Binary: Type of transfer: 'Ascii' sends files as text and must only be used for sending ASCII text files. 'Binary' (default) sends files as raw data and should be used for sending e.g. UTF-encoded text files

  • Ascii: Type of transfer: 'Ascii' sends files as text and must only be used for sending ASCII text files. 'Binary' (default) sends files as raw data and should be used for sending e.g. UTF-encoded text files

Default: 0 Example: FtpTransportType.Binary

Mode : FtpMode

Connection mode to use to connect to the FTP server

Possible values:

  • Passive: Connection mode to use to connect to the FTP server

  • Active: Connection mode to use to connect to the FTP server

Default: 0 Example: FtpMode.Passive

KeepConnectionAliveInterval : Int32

Sends NOOP command to keep connection alive at specified time-interval in seconds. If set to 0 the connection is not kept alive. Default value is 0

Default: 0 Example: 60

ConnectionTimeout : Int32

The length of time, in seconds, until the connection times out. You can use value 0 to indicate that the connection does not time out. Default value is 60 seconds

Default: 60 Example: 60

Encoding : String

If set, this encoding will be used to encode and decode command parameters and server responses, such as file names. Example values: utf-8, utf-16, windows-1252

Default: - Example: utf-8

BufferSize : Int32

Integer value of used buffer size as bytes.

Default value is 4 KB.

Default: 4096 Example: 4096

UseFTPS : Boolean

Whether to use FTPS or not.

Default: False Example: false

SecureDataChannel : Boolean

Whether the data channel is secured or not.

Default: True Example: true

SslMode : FtpsSslMode

Specifies whether to use Explicit or Implicit SSL

Possible values:

  • None: Specifies whether to use Explicit or Implicit SSL

  • Explicit: Specifies whether to use Explicit or Implicit SSL

  • Implicit: Specifies whether to use Explicit or Implicit SSL

  • Auto: Specifies whether to use Explicit or Implicit SSL

Default: 0 Example: FtpsSslMode.None

EnableClientAuth : Boolean

If enabled the client certificate is searched from user's certificate store

Default: False Example: false

ValidateAnyCertificate : Boolean

If enabled the any certificate will be considered valid.

Default: False Example: false

ClientCertificatePath : String

Path to client certificate (X509).

Default: - Example: c:\example.cer

CertificateHashStringSHA1 : String

Certificate SHA1 hash string to validate against.

Default: - Example: D911262984DE9CC32A3518A1094CD24249EA5C49

Task Result

Name
Description

Content : String

Content of the file in string format. Example: This is a test file

Path : String

Full name of the file. Example: c:\source\Test.txt

SizeInMegaBytes : Double

Size of the read file. Example: 0

LastWriteTime : DateTime

Timestamp of when the file was last modified. Example: 06/14/2022 09:45:28

Task Changelog

Changelog for Task Frends.FTP.ReadFile.

[1.1.0] - 2024-08-23

Changed

  • Updated the Newtonsoft.Json package to version 13.0.3.

[1.0.0] - 2023-08-04

Added

  • Initial implementation

Last updated

Was this helpful?