Downloads multiple files that match the filter from the FTP server remote directory.

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

Syntax

C#
public virtual void MDownload(
	string regexp
)
Visual Basic
Public Overridable Sub MDownload ( _
	regexp As String _
)
Visual C++
public:
virtual void MDownload(
	String^ regexp
)

Parameters

regexp
Type: System..::..String
The regular expression filter.

Remarks

Downloads are saved relative to the local directory.
To download a directory use the DownloadDir method.
Important: Use this method ONLY for servers that follow the standard UNIX or MS-DOS directory style listings.
CopyC#
// UNIX STYLE
-r-xr-xr-x   1 owner    group               1 Jun  3  1999 NotCurrentYear.txt
-r-xr-xr-x   1 owner    group               1 Mar  6 21:11 CurrentYear.txt

CopyC#
// MS-DOS STYLE
06-03-99  10:57PM         1  NotCurrentYear.txt
03-06-00  09:11PM         1  CurrentYear.txt

Examples

The following example downloads all files in this regular expression: .*\.txt , from the remote directory to the local directory.
CopyC#
myFtp.MDownload(@".*\.txt");

Copy 
myFtp.MDownload(".*\.txt")

Exceptions

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

See Also