Downloads a file from the FTP server relative to the
local directory.
Namespace: Jscape.FtpAssembly: 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
Exception | Condition |
---|---|
Jscape.Ftp..::..FtpException | If an I/O or FTP error occurs. |