You are here: Start » AVL.NET » AVL.Ftp_ReceiveFile Method

AVL.Ftp_ReceiveFile Method

Downloads a file from a remote server using FTP (File Transfer Protocol).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void Ftp_ReceiveFile(
	string inFilePath,
	string inHostName,
	string inFtpFilePath,
	bool inUsePassiveMode
)

Parameters

Name Type Range Default Description
inFilePathstringLocation of the file on a remote server.
inHostNamestring\"ftp://\"URL address of the remote server. Default value: \"ftp://\".
inFtpFilePathstringLocation of the file on a remote server.
inUsePassiveModeboolProtocol communication mode. May be necessary when using a firewall.

Errors

Error type Description
DomainError Empty path on input in Ftp_ReceiveFile
DomainError Empty host name on input in Ftp_ReceiveFile
DomainError Empty ftp file path on input in Ftp_ReceiveFile

See also