You are here: Start » AVL.NET » Function Reference » System » FTP » AVL.Ftp_ReceiveFile

AVL.Ftp_ReceiveFile

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
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

List of possible exceptions:

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

Function Overrides

See also