Downloads a file from the FTP server relative to the local directory.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public virtual FileInfo Download(
	string localFile,
	string remoteFile
)
Visual Basic
Public Overridable Function Download ( _
	localFile As String, _
	remoteFile As String _
) As FileInfo
Visual C++
public:
virtual FileInfo^ Download(
	String^ localFile, 
	String^ remoteFile
)

Parameters

localFile
Type: System..::..String
The destination filename.
remoteFile
Type: System..::..String
The remote filename.

Return Value

The remote file contents.

Remarks

The relative directory structure is created automatically if it does not exist at the time of the download.

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also